TLDR Web Dev · QUICK LINKS

WHY ARE 2025/05/28 AND 2025-05-28 DIFFERENT DAYS IN JAVASCRIPT?

brandondong.github.io5 min read

Summary from the TLDR Web Dev newsletter

JavaScript interprets dates with the `/` separator as local time and dates with the `-` separator as UTC, leading to different date calculations due to browser parsing inconsistencies and historical standards.