0

what date strings are considered valid to pass to the javascript date object constructor to initialize a date object.

azam
  • 205
  • 4
  • 20
  • 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 Answers1

3

according to MDN:

The string should be in a format recognized by the parse method (IETF-compliant RFC 2822 timestamps).

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