this post was submitted on 22 Nov 2023
1040 points (95.9% liked)
Memes
45581 readers
2691 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
YYYY-MM-DD for files, DD-MM-YYYY for normal use
Wtf why
Agreed, YYYY-MM-DD should be normal use
So its possible to properly sort by date?
A proper date sort would be YYYYMMDD
Wtf why
Because in short, it's alphabetical. It will always be in order by year, then month, then day. Literally like how a clock goes HH:MM:SS it's the same thing as YY:MM:DD the right side ticks the fastest. It's in order by hour (year) then minute (month) then second (day). SAME SAME WHY NOT
Because for 99.99% of all situations, you'd already know what year and month it is, so the most readily available piece of information should be the day.
If you already know the year and month why write it. ISO or month day are the two most reasonable. You need to zoom in not give yourself a list of options and then randomly pick one later.
YYYYMMDD for files
DDDD DD for normal use