RFC 3339

It's clearly superior!

Rant

It arguably doesn't matter in the grand scheme of things, but I am opinionated on our choice of date format. The American date format is month-day-year (mm-dd-yyyy). It doesn't make sense! It's like starting in the middle of something. It's like a plain cake, sitting on a plate that is resting in a puddle of frosting. The OORE of Oreos!

An Oreo compared to an oore. The Oreo is a cookie-creme-cookie stack and the oore is a cookie-cookie-creme stack.

Worse though, this format conflicts with several other countries that use day-month-year (dd-mm-yyyy) which creates ambiguity. This is a better format I guess, but still bad. Why are we starting at the small end? If you are manually trying to tell which date came first, you gotta jump to the end and work your way backwards when reading. If you name files this way and sort by name on a computer, the files will be all out of order. 01-02-2000, is that January 2nd or February 1st? Unless you know the country the date originated from, who knows! Even if you do know, it's still often a toss-up. (Also this format's order breaks down once you get to hours/minutes/seconds which are tacked on right after the year)

A pyramid made with 7 bricks. At the bottom is a medium brick labeled DD, then moving up to progressively larger bricks is MM then YY, the next bricks moving from medium to smallest like a correct pyramid are bricks labeled HH, mm, ss and ms. The result is an incorrectly-shaped pyramid with bricks out of order.

Enter RFC 3339 (and also ISO 8601 I guess). These standards codify the date format in an unambiguous format that, in my opinion, just makes sense. It goes from largest data element (year) to smallest (fractions of a second). You can sort dates in this format alphabetically and it works ignoring timezone shenanigans. If you name files with this date format, all major OSs can list them in a way that makes finding a specific date easily. Even better, being alphabetically sorted by most significant digit first makes it ready for binary search! It's just nice and I hope more people swap over to it soon.