[uf-dev] The correct format of a ISO date

Glenn Jones glenn.jones at madgex.com
Fri May 23 02:18:27 PDT 2008


I have a questions about the use of the Z char (Zulu time or UTC) and
the time zone information together.

So these are correct  
2007-05-01T11:30:15Z
2007-05-01T11:30:15-08:00

What about 
2007-05-01T11:30:15Z-08:00

I cannot seem to find a clear pointer on whether the above is a valid
ISO date.

Background work
http://www.ufxtract.com/testsuite/documentation/iso-date-normalisation.h
tm
http://www.ufxtract.com/testsuite/hcard/hcard15.htm (Alt X to run test)


Examples of date formats I think are OK

2008-01-21
20080121
2007-05-01T11:30
2007-05-01 11:30
20070501 11:30
20070501T1130
2007-05-01T11:30:15
20070501T113015
2007-05-01T11:30Z-08:00
2007-05-01T11:30-08:00
2007-05-01T11:30+08:00
2007-05-01T11:30Z08:00
20070501T1130Z-0800
2007-05-01T11:30Z
2007-05
07-05-01 (equals 2007-05-01)
070501  (equals 2007-05-01)

The last one is interesting 
http://en.wikipedia.org/wiki/ISO_8601 ...
"Although the standard allows both the YYYY-MM-DD and YYYYMMDD formats
for complete calendar date representations, if the day [DD] is omitted
then only the YYYY-MM format is allowed. By disallowing dates of the
form YYYYMM, the standard avoids confusion with the truncated
representation YYMMDD (still often used)."


Glenn Jones 











More information about the microformats-dev mailing list