ISO DATE FORMAT ISO
Albeit not perfect, ISO date format is, however, the best choice for a date representation that is universally (and accurately) understandable. Using numerical dates does have also some pitfalls with regard to readability and usability, as explained in the Date formats FAQ. Note that this format can also be used to represent precise date and time, with timezone information
ISO DATE FORMAT FULL
In most cases, writing the date in full letters would be better than the example above.Īpr. Your answer will depend, mostly, on which country you live in. 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. Fortunately, there is one solution in the ISO-developed international date format. Return values: This function returns the date value of a Python DateTime.date object in ISO 8601 format.Įxample 1: In the below example, the isoformat() function has been called on today’s date and it returns the same today’s date string in ISO 8601 format.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.
If microseconds component is available it will be printed.
ISO DATE FORMAT HOW TO