Re:Why are 2025/05/28 and 2025-05-28 different days in JavaS...
by kace91 on Wednesday May 28, 2025 @04:35AM
(#44113911)
Uh, TIL. As a non American it was known to me that Americans use the YDM format but I had no idea slashes vs dashes carried meaning for that.
[ Parent
| on HN ]
Re:Why are 2025/05/28 and 2025-05-28 different days in JavaS...
by floydnoel on Wednesday May 28, 2025 @06:35AM
(#44114546)
they don’t really, at least not in any universal sense. in the military (marine corps) we always used YMD with slashes. i would say that in non-military contexts, dashes are seen with YMD more frequently. but dashes or slashes are used for both YMD and MDY and there's no legal rule or regulation nor requirement to use one or the other. some people just pattern match quickly and assume too much based on that.
Re:Why are 2025/05/28 and 2025-05-28 different days in JavaS...
by thrdbndndn on Wednesday May 28, 2025 @04:37AM
(#44113922)
Do they? I think the US use MDY mostly and sometimes YMD.