I've got a simple dancer app where users can enter dates that will eventually get stored in MySQL in yyyy-mm-dd format.
What's the recommended way of validating user entered dates via a web form? I'd assume forcing them to be entered yyyy-mm-dd might be confusing to some, so I'd like to accept a range of standard formats, ie mm-dd-year, mm/dd/year, etc and then convert to MySQL ISO format. Would you try to handle this in javascript or would you instead use Date:Parse or something similar?
I've got a javascript date picker, which can guarantee the correct format, but I hate to force that as the only method available.