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

Toby A Inkster mail at tobyinkster.co.uk
Fri May 23 11:27:31 PDT 2008

Glenn Jones wrote:

> 07-05-01 (equals 2007-05-01)
> 070501  (equals 2007-05-01)

Thanks for these examples. Although the current version of Cognition  
parses these dates correctly, it marks the "resolution" of the dates  
as being "month" (because they only have 6 numeric digits), so when  
outputting them will only output the year and month even though it  
knows the day internally. :-( Fix in the next release.

If you really want to test full ISO compatibility, then you should  


Plus "T..." variants (i.e. with times). Cognition supports them all  
because it uses the Perl DateTime::Format::ISO8601 module, which is  
fairly comprehensive.

But I don't think implementations should be expected to support the  
entire ISO8601 -- the W3CDTF note subset should be all that's required.

Toby A Inkster
<mailto:mail at tobyinkster.co.uk>

More information about the microformats-dev mailing list