Date masking by cflocale
I'm trying to create a form in my localised web application which will use the cflocale value to mask a text based date-input field.
I don't want to use a calendar tool as the date selection method, but would like to be able to use something along the following lines:
<cfinput type="text" name="myDate" id="myDate" required="yes" mask="#localeDateMask#" message="Enter a valid date in the format #localeDateMask" validateat="onsubmit,onserver" />
Ideally, I was wondering if I can populate the localeDateMask variable from the underlying java locale setting. Otherwise, I'm going to have to create a look-up table to get this value for each possible locale. No problem doing that, but I'd rather not re-invent the wheel!
