HTML date format and Date.parse()

Jason Orendorff jason.orendorff at
Thu Apr 25 13:43:26 PDT 2013

The HTML spec for parsing date and time values is slightly more lenient than ES.

The differences are:
- HTML allows more-than-4-digit years.
- HTML allows the seconds and milliseconds to be omitted.
- HTML allows the "T" in the middle to be replaced with a single space.

Can ES adopt these changes? It seems to me HTML and JS might as well
have the same rules for this sort of thing.

HTML: Local dates and times

ES: Date.parse (string)

ES: Date Time String Format

Some old discussion in Mozilla's bug-tracking system, no real conclusion:


More information about the es-discuss mailing list