I've got a DatePicker that automatically inserts the date in Mon-dd-yyyy
format and, like so many others, it breaks if an improper format (e.g. monddyyyy
, yyyy-dd-mm
, etc.) is used to enter the date when not in read-only mode.
I want to take DatePicker and have it check to see if the date fits the Mon-dd-yyyy
format and just spit an error held in a hidden div
(there's already one for the date being blank) as opposed to going to a stack trace page.