Question
cfinput date validation
I have the following date input :
<cfinput type="text" name="date_arrived" size="10" maxlength="10" value="#dateformat(now(), 'mm/dd/yyyy')#"
required="yes" validate="date" message="Please Enter The Date Arrived in MM/DD/YYYY Format">
The current date is displayed as soon as the form is opened. They are allowed to change the date. But if they put in something like 13/25/2008 instead of 03/25/2008, it does not validate and iit blows up with the following error :
"13/25/2008" is an invalid date or time string.
There are some other javascript edits for other fields on the form, but not for the date.
<cfinput type="text" name="date_arrived" size="10" maxlength="10" value="#dateformat(now(), 'mm/dd/yyyy')#"
required="yes" validate="date" message="Please Enter The Date Arrived in MM/DD/YYYY Format">
The current date is displayed as soon as the form is opened. They are allowed to change the date. But if they put in something like 13/25/2008 instead of 03/25/2008, it does not validate and iit blows up with the following error :
"13/25/2008" is an invalid date or time string.
There are some other javascript edits for other fields on the form, but not for the date.
