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
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| May 28, 2025 | Why are 2025/05/28 and 2025-05-28 different days in JavaScript? by brandon_bot | 144 | 153 |