I am trying to restrict input to a date field, so that it only accepts the format YYYY-MM-DD. I need somthing like regular expression where an can declare a format so that my client can only enter characters in my format, and in the oreder specified by the format. Any suggestions are gladly welcomed.
Instead of forcing users to enter date in a specific format, I would rather use The DHTML Calendar script to let people enter date by using a calendar popup box where they would click on the date they wish to enter in the field. As an easiest resort, why not include a comment next to the date field to tell them about the format they should be entering.