Validate Date CFInput
Posted on 2003-12-04
<CFINPUT NAME="ListingDate" VALUE="#Evaluate('invest.ListingDate')#" TYPE=text SIZE="20" REQUIRED="no" MESSAGE="Check Input" VALIDATE="date">
The above code is from my update(edit) page. What i am doing is showing in the input field the value from my database.
The problem I am encountering:
The date returned is in this format:
I want to format my variable, to show the date in this format:
in my form, the default returned date returns an error after i submit the form, stating it is not in the correct format VALIDATE="date"
So how can i preformat: