Date.parse return type

Lars T Hansen lth at
Sat Jul 28 11:38:28 PDT 2007

IE doesn't either (though Opera does).  I'm stunned.  That does it --
this format goes into the date proposal as a variant of the ISO
syntax, which will be good since it makes the ES4 ISO syntax more
compatible with the syntax defined in the W3C date note.  (Also
accepting "2007" and "2007-07" would make it fully compatible.)


On 7/28/07, Brendan Eich <brendan at> wrote:
> On Jul 28, 2007, at 11:21 AM, Lars T Hansen wrote:
> Date.parse("2007-07-28")
> SpiderMonkey:
> js> Date.parse("2007-07-28")
> NaN
> We've never had a bug filed asking for this to work because it works in IE
> (does it? I can't test atm). But anyway, Lars is right in general; my answer
> was based on Firefox only. Per the fine spec (since Edition 1 :-P), the
> result is implementation-defined.
> /be
> _______________________________________________
> Es4-discuss mailing list
> Es4-discuss at

More information about the Es4-discuss mailing list