Re:Why are 2025/05/28 and 2025-05-28 different days in JavaS...
by hnbad on Wednesday May 28, 2025 @04:37AM
(#44113920)
Wait, I thought Americans use M/D/Y not Y/D/M?
[ Parent
| on HN ]
Re:Why are 2025/05/28 and 2025-05-28 different days in JavaS...
by silisili on Wednesday May 28, 2025 @04:57AM
(#44114026)
We do, almost exclusively.
We'll use Y/M/D for systems or ordering, sometimes.
I can't recall having ever seen Y/D/M used in any notable sense.
Re:Why are 2025/05/28 and 2025-05-28 different days in JavaS...
by chungy on Wednesday May 28, 2025 @04:57AM
(#44114022)
This is correct, the most common short-hand format in America is MM/DD/YYYY (possibly two digits in the last group). Dates like 05/28/2025 and 28/05/2025 are unambiguous enough to deal with order differences, dates like 06/03/2025 are not.
Year first and dashes is pretty much exclusively YYYY-MM-DD, no ambiguity; 2025-03-06 cannot be interpreted in any manner other than "the sixth day of the third month of the year 2025"