Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
fastball
7mo ago
0 comments
Share
Not only is YYYY/MM/DD unambiguous, but it also sorts correctly by date when you perform a naive alphabetical sort.
0 comments
default
newest
oldest
LoganDark
7mo ago
I believe YYYY-MM-DD is even less ambiguous than YYYY/MM/DD.
a96
7mo ago
Correct. Slashes mean it's a yank date and going to be backwards. Dashes hint that it's going to be (close to) ISO standard.
_Algernon_
7mo ago
And it doesn't use a path-separator character for the date.
tom_
7mo ago
Slashes are used for dd/mm/yyyy as well. Dashes are indeed better if you want a separator. or use the separator-free ISO 8601 syntax.
1 more reply
j
/
k
navigate · click thread line to collapse