Hi,
I am using jQuery UI datepicker to allow the user to select dates.
This updates an input field in a form in the format:
dd/mm/yyyy
I am trying to use jQueryUI to then parse the date in a UNIX timestamp to check it is a date with the built in jQuery UI parseDate:
http://docs.jquery.com/UI/Datepicker/parseDate
However i am not sure how to output a date in timestamp format from a string e.g. 13/05/1978?
I tried this:
$.datepicker.parseDate('@', '13/05/1978');
But it does not seem to work or i am reading the documentation wrong.
If i use Date.parse('13/05/1978')
it returns the timestamp 284342400000 which i assume to be correct.
Basically i am trying to get a Date object from a string which is inserted to an input field by the jQuery UI datepicker.