Date strings should conform to the ISO 8601 format (YYYY-MM-DDTHH:mm:ss.sssZ) for successful parsing across all browsers, as specified by the MDN.
Other formats may be supported, but the behavior is implementation-defined.
The Date constructor and Date.parse are equivalent for parsing date strings.
See more results on Neeva
Summaries from the best pages on the web
The call to Date.parse(str) parses the string in the given format and returns the timestamp (number of milliseconds from 1 Jan 1970 UTC+0). If the format is ...
Date and time
For web applications especially, formatting a date is a pretty common task. Take a look ... Date.prototype to include format() , you must use dateformat as a ...