Use international date format (ISO)

How does one write a date on the Web? There are so many formats available, most of them incompatible with others, that it can be a usability nightmare to choose a date representation when writing for an international, cross-cultural audience, as is the case on the web. Fortunately, there is one solution in the ISO-developed international date format.

The date interpretation quagmire

The worst potential usability problems come when the date is written only with numbers as in the following example, because the date's interpretation will be different from one country to another.

Imagine the following date: 02/04/03

Which does it mean?

Your answer will depend, mostly, on which country you live in.

In most cases, writing the date in full letters would be better than the example above. Apr. 3rd, 2002, for example will be easy to understand for any English-speaking audience.

But this system does not cross borders much better than its numerical counterparts: does the french 12 Août 2042 actually mean something for a Japanese person? Or when you notice a 昭和44年03月16日 in Japanese which is 16 March 1969 in English.

The ISO date format

The international format defined by ISO (ISO 8601) tries to address all these problems by defining a numerical date system as follows: YYYY-MM-DD where

For example, "3rd of April 2002", in this international format is written: 2002-04-03.

Note that this format can also be used to represent precise date and time, with timezone information

Using numerical dates does have also some pitfalls with regard to readability and usability, as explained in the Date formats FAQ. Albeit not perfect, ISO date format is, however, the best choice for a date representation that is universally (and accurately) understandable.

Further Reading

About the "QA Tips"

The W3C QA Tips are short documents explaining useful bits of knowledge for Web developers or designers, hosted and produced by the Quality Assurance Interest Group at W3C.

While the tips are carefully reviewed by the participants of the group, they should not be seen as anything else than informative bits of wisdom, and especially, they are not normative W3C technical specifications.

Learn more about the Tips, how to submit your own pearls of wisdom, and find all the other QA tips in the Tips Index.

Created Date: 2003-08-16 by Karl Dubost - Send Feedback (archive)
Last modified $Date: 2020/01/13 12:41:08 $ by $Author: coralie $