Date.parse return type

Brendan Eich brendan at mozilla.org
Sat Jul 28 11:27:47 PDT 2007


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.mozilla.org/pipermail/es-discuss/attachments/20070728/05917ef5/attachment-0002.html 


More information about the Es4-discuss mailing list