MindRetrieve Blog

MindRetrieve - an open source desktop search tool for your personal web

Friday, December 16, 2005

ISO 8601, the metric of date format

Different countries have different convention of writing date. Some write in m/d/y order and some write in d/m/y order and so on. One thing to do for localization is to show date in the right format...

I say ____ the convention. Write it in ISO 8601 format. That is in the YYYY-MM-DD format. No more confusion of whether the day or month come first. And when you sort it, it comes out in chronological order. ISO 8601 is the metric of date format.

2 Comments:

  • At 4:31 PM, Blogger James Gray said…

    I agree, however, according to RFC 2616 (http://www.faqs.org/rfcs/rfc2616.html)
    HTTP should use the format
    Sun, 06 Nov 1994 08:49:37 GMT

    What a pain... :( Should be easy to parse in python though. At least you can pick your own format everywhere else.

     
  • At 1:10 PM, Blogger Tung Wai Yip said…

    IETF codifies some of the most English centric protocol for us. That date is one of its silly design. Often time I want to drop in an arbitrary date like 2000-01-01 for testing. Now I have the challenge of finding out what day of week 2000-01-01 is?!

     

Post a Comment

<< Home