This page was design to comprehensively test the W3C Note DateTime profile. The IsEqualToISODate method normalisation and compares dates.
From: hCalendar test suite 1.0
Tests:
| Test | Result | Comment |
|---|---|---|
| vevent[0].dtstart | IsEqualToISODate("2007") | Should find a date from text node - Year |
| vevent[1].dtstart | IsEqualToISODate("2007-05") | Should find a date from text node - Year and month |
| vevent[2].dtstart | IsEqualToISODate("2007-05-01") | Should find a date from text node - Year, month and day |
| vevent[3].dtstart | IsEqualToISODate("2007-05-01T21:30") | Should find a date from text node - Year, month, day and time |
| vevent[4].dtstart | IsEqualToISODate("2007-05-01T21:30Z") | Should find a date from text node - UTC Year, month, day and time |
| vevent[5].dtstart | IsEqualToISODate("2007-05-01T21:30:00Z") | Should find a date from text node - UTC Year, month, day and time |
| vevent[6].dtstart | IsEqualToISODate("2007-05-01T21:30+08:00") | Should find a date from text node - Year, month, day and time with time zone offset |
| vevent[7].dtstart | IsEqualToISODate("2007-05-01T21:30:00+08:00") | Should find a date from text node - Year, month, day and time with time zone offset |
| vevent[8].dtstart | IsEqualToISODate("2007-05-01T21:30:00.0150") | Should find a date from text node - Year, month, day and time with decimal fraction of a second |
History: