this post was submitted on 29 Oct 2023
1110 points (95.3% liked)
Memes
45635 readers
1149 users here now
Rules:
- Be civil and nice.
- Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Aaaand ... DD/MM/YYYY ๐ซ
YYYY-MM-DD
this guy iso8601โs
rfc3339's
This, FTW
why
YYYY-MM-DD is easier to get sorted since most significant number is on the left.
Least important it may be. But it is the most significant. This scheme follows the conventional scheme we follow while writing numbers - the most significant digit to the left and significance reducing as we move right.
The advantage of YYYY-MM-DD becomes when you add time to it in ISO-8601 or RFC 3339 format: YYYY-MM-DDThh:mm:ss. All the digits are uniformly decreasing in significance from left to right.
This becomes even more apparent if you are trying to sort by time - say, a stack of files, or datetime in a computer. Try doing this with any other scheme.
As much as I vehemently dislike US customary units, MM/DD/YYYY is the USA's greatest notation crime.
This one wouldn't make sense as they say dates as month day, year.
To me, dates should always be written in international format: YYYY-MM-DD
$ 50
Do you call this fifty dollars, or dollar fifty?
Lots of stuff is written differently, than it is spoken. In case of the date it is weird, not to go from biggest to smallest or vice versa. I guess you are used to it now, but for me it would be the same as putting seconds before minutes or inches before feet.
Depends on context, IMO did/mm/yyyy is the most natural when writing some text, but partial ISO yyyy-mm-dd is ideal for when naming files and directories, makes lexicographical ordering follow chronological order.
Big-endian vs little-endian all over again
I personally prefer dd-mm-yyyy because cutting stuff of the end to get dd-mm or dd is better imho. Just an opinion tho, use what you like.