I'm having trouble using datajs with a date format from Google Calendar API. The datetime format I believe is RFC3339 and this is a sample datetime returned from the calendar api
2012-01-05T08:45:00Z
This is from the datejs documentation here
Date.parse('1985-04-12T23:20:50Z') // RFC 3339 Formats
But this just returns null.
I'm assuming I have datejs working correctly as
Date.today().next().friday()
returns Fri May 11 2012 00:00:00 GMT+0100 (BST)
SOLVED: Use Date.parseExact OR this version according to this Bug report
DEMO using date.js
DEMO using date-en-US.js
Using the first version I get
when I take the assertions out of the testsuite:
Here is an older answer for this issue when not using date.js