1

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?

Charles
  • 50,943
  • 13
  • 104
  • 142
Chris Dutrow
  • 48,402
  • 65
  • 188
  • 258

1 Answers1

1

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}
Daxcode
  • 424
  • 3
  • 7
  • It was throwing errors in my code, but I put it in firefox's debugger to check before I posted. I wonder if I have the wrong version of datejs or something? – Chris Dutrow Mar 19 '12 at 23:13