TLDR Web Dev · QUICK LINKS
WHY ARE 2025/05/28 AND 2025-05-28 DIFFERENT DAYS IN JAVASCRIPT?
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.