I have a input text, user can input date format like this:
"yyyy-mm-dd"
Is any method I can use to validate use input the correct format,not "yy-mm-dd" or yy/mm/dd" or "yyyyy"
Thanks
Hi there, Take a look at ereg() in the manual