ISO 8601
post
YYYY-MM-DD
Yep and it needs to use hyphens and not slashes. It helps avoid missed typos or mis-reads in some situations, especially if hand-written.
and it's perfectly sortable
oh yeah. There are numerous benefits to the format itself, outside the question of hyphens vs slashes.
I find the sortability quite satisfying, but also as somebody living in the US, I also like that it's unambiguous regardless of my audience. Hell, half the time I see people hand-write a date on something they don't even use a year.
There are also variants with single dots too. I sometimes do timestamps without any separator too, depending on the context (such as file backups): YYYYMMDD in example 20260805.
ISO 8601 my beloved
I read this meme and was physically revolted and wanted to immediately down vote. Great job.
The superior date format is, of course, ISO 8601. YYYY-MM-DD.
RFC3339 is better than ISO8601 since it doesn't allow some of the esoteric formats, and allows some useful formats that ISO8601 doesn't (like separating date and time by a space instead of by T)
For example, 2026-W32-1 is also a valid ISO8601 date: Monday on the 32nd week of 2026. That format isn't allowed with RFC3339.
I feel like DD/MM/YYYY is the same as doing: ss:mm:HH and I find that confusing.
I see the duality in this but I still think both are valid. When telling the time, there's usually no point in including the seconds since they'll have changed before you finish saying the whole thing anyway. In spoken word IMO it makes sense to go from more specific to less specific, and even not include extra parts sometimes (e. g. "today is the 3rd" when it's expected to know the month and, well, year from context, or "it's half past" to someone whom you've told the time a couple of minutes ago).
That’s really funny. DMY is more like Hms in that it is in descending order of relevance. Most people asking the date or time are looking for the hour of the day or the day of the month, and the rest is context.
Files get sorted by alphanumerical order so ISO 8601 (YYYY-MM-DD) is objectively superior in that regard.
My comment was about vocal human interaction, not on a device.
I agree with that in principle, but a) it should be in meta data and b) it should be abstracted so the user can display any format they wish. As a last resort, in the file name, sure. That standard adds a lot of extra time gumpf
The point is the order of importance, i am gonna need to know day and month we are in way more often than the year, i also want to know more often the hours and the minutes than the seconds, the seconds change way too often to be useful in most scenarios
yyyy/mm/dd, it's less ambiguous and it sorts nicely
Edit: so many replies suggesting using a hyphen as a separator, I'd like to compromise by using the oblique angle sign (⦧) which looks like a slash that becomes a hyphen in the middle. yyyy⦧mm⦧dd
That's a red flag... He has obviously not received the xkcd PSA.
Anyone who wants to write the millennium between the month and century loses all credibility when arguing about date formats.
YYYY-MM-DD is the only coherent date format.
Ew.
yyyymmdd
Months are stupid anyway, lets drop them and swap for what they were supposed to represent instead: the moon phase, so today would be 216-2026-Waning Gibbous
I proper shit post would have suggested “mm/dd/yyyy”.
The problem is not the format itself, its just sometimes we don't know which format is used: 07/07/26
Edit: This was probably a bad example, because it does not matter which format, as it is clear it is 7th of July 2026 in both possible formats. A better example: 01/02/26
ISO 8601 RFC 3339 (yyyy-mm-dd) for storing dates in software. Any format that that goes in the order of day, month, and year for conversational/presentational purposes, preferable the format is dynamic depending on the user's locale (even for those that want the month first). There now everyone is happy.
Edit: switched to RFC 3339 since it is a subset of ISO 8601 that is more strict, and I love semantics.
RFC3339 is better than ISO8601 since it doesn't allow some of the esoteric formats, and allows some useful formats that ISO8601 doesn't (like separating date and time by a space instead of by T)
For example, 2026-W32-1 is also a valid ISO8601 date: Monday on the 32nd week of 2026. That format isn't allowed with RFC3339.
Damn it I forgot about the duration part of ISO 8601 (which is also super useful and I love it). I'll amend it to RFC 3339 to be more exact in what I mean (even though the specified format should prevent the more esoteric formats).

top 100 comments