Brandon Dong personal blog

Why are 2025/05/28 and 2025-05-28 different days in JavaScript?

A Date in JavaScript always represents a point in time (i.e. milliseconds since epoch). This is more apparent when printing out the full date string:
Points
144
HN comments
153
Submissions
1
Cited by
0 commenters

Software EngineeringWeb & Frontend2025

On Hacker News

SubmittedTitle on HNPointsComments
May 28, 2025Why are 2025/05/28 and 2025-05-28 different days in JavaScript? by brandon_bot144153

Related posts from the same era