Chris Dutrow
Chris Dutrow

Reputation: 50362

JavaScript's Datejs library will not parse its own ISO format string

Javascript's Datejs library does not seem to want to parse its own ISO Format string:

Date.parse((new Date()).toISOString ( )) // Result is null

Is there another way I should be doing this?

Upvotes: 1

Views: 408

Answers (1)

Daxcode
Daxcode

Reputation: 434

Which browser are you using? I tried the syntax in the console of Firefox and it's returned a correct date value:

>>> Date.parse((new Date()).toISOString ( ))
Date {Mon Mar 19 2012 22:20:55 GMT+0100}

Upvotes: 1

Related Questions