Possible Duplicate:
Convert a Unix timestamp to time in Javascript
I have been storing the user's date format preference in the database as a string of the format used by PHP's date() function.
A need has arisen for dates to be calculated by Javascript. Is anyone aware of some sort of mapping of the PHP format into Javascript?
From passing the PHP date format Ymd
string to a Javascript function I would expect it to return 20010310