I have a Unix timestamp "1264529457" that translates to January 26, 2010, which is stored inside an input element named America.
When initializing jQuery UI Datepicker, I have the following code to set the default date:
defaultDate: $.datepicker.parseDate('@', $("input[name=america]").val()),
When I manually verify that this is happening in Firebug, it says: "Thu Jan 15 1970 00:00:00 GMT-0500 (Eastern Standard Time) {}". Any idea what is wrong (the documentation for this function is a bit sparse, so I assume I missed something)?
source share