Below is the j Query function which validates the date. Form validation normally used to occur at the server, after the client had entered all the necessary data and then pressed the Submit button.In other words: If a date/time is created in GMT (Greenwich Mean Time), the date/time will be converted to CDT (Central US Daylight Time) if a user browses from central US.Executes Java Script whenever a user moves with the mouse the focus away from an element within a form.
The following example shows how to validate an entered email address.
An email address must contain at least a ‘@’ sign and a dot (.).
It is not that easy to play with different format of dates at different places.
Mostly the mm/dd/yyyy (alternatively, mm-dd-yyyy) format of date is used.
This would apply an error css class to highlight your required fields and display an appropriate message to the user.