what date strings are considered valid to pass to the javascript date object constructor to initialize a date object.
Asked
Active
Viewed 1,918 times
0
-
The same strings that are deemed valid by [parse()](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/parse). – Frédéric Hamidi Aug 31 '12 at 12:25
1 Answers
3
The string should be in a format recognized by the parse method (IETF-compliant RFC 2822 timestamps).

Colin Pickard
- 45,724
- 13
- 98
- 148