Why are 2025/05/28 and 2025-05-28 different days in JavaScript?
brandondong.github.io
Why are 2025/05/28 and 2025-05-28 different days in JavaScript?
1–10 of 167 posts
Re: Why are 2025/05/28 and 2025-05-28 different days in JavaScript?
#2Re: Why are 2025/05/28 and 2025-05-28 different days in JavaScript?
#3[flagged]
Re: Why are 2025/05/28 and 2025-05-28 different days in JavaScript?
#4[flagged]
Re: Why are 2025/05/28 and 2025-05-28 different days in JavaScript?
#5Re: Why are 2025/05/28 and 2025-05-28 different days in JavaScript?
#6Re: Why are 2025/05/28 and 2025-05-28 different days in JavaScript?
#7https://en.wikipedia.org/wiki/ISO_8601
Handed down by the ISO, The Great Compromise allows YYYY-MM-DD (or YYYYMMDD if you're in a hurry) but the version with slashes I'd find ambiguous and upsetting, especially early in the month.
The standard is good, and you can get it from `date -I`. Hell mend anyone who messes with the delimiters or writes the year in octal or any other heresy.
Re: Why are 2025/05/28 and 2025-05-28 different days in JavaScript?
#8How did they manage to build the entire modern Web on a language without a standard library?
That is not a better world.
Re: Why are 2025/05/28 and 2025-05-28 different days in JavaScript?
#9How did they manage to build the entire modern Web on a language without a standard library?
[Ok that's enough, ed.]
Re: Why are 2025/05/28 and 2025-05-28 different days in JavaScript?
#10How did they manage to build the entire modern Web on a language without a standard library?
The world where JavaScript has a robust standard library is one where there is only one browser vendor who gets to call all the shots regarding what the web looks like. That is not a better world.
Not a better world, just the current world.