Representing Date/Times as Strings for Non-Human Consumption

Programming Add comments

If you ever have the need to represent a date/time (or part of a date/time) as a string for programmatic rather than human consumption (e.g. you are defining a save file format or a network protocol), please use ISO 8601 unless you have a very strong reason not to.

For more information, please read what the W3C has to say about ISO 8601 style date and time formats.

One Response to “Representing Date/Times as Strings for Non-Human Consumption”

  1. Caustic Dave Says:

    Agree 1000%!

    It is still amazing how many of my coworkers publish XML with date attributes of MM/DD/YYYY. Then they write extra XSL to sort on that attribute.

    Geez.

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in