Date Gotchas Playground

Which month is new Date(2026, 10, 17)? In which zone is a date text read? What do 31 January + a month, or a city-style date, become? Tried in your own time…

Why it matters

Dates are in every app: deadlines, schedules, timestamps. Date bugs are subtle (a month off by one, a day shifted by the zone, 31 January + a month becoming March) and rarely caught before production. Know the traps and your dates come out right.

The key idea

Months from 0, a date-only text read as UTC, months that overflow

Common mistakes

Try it in this playground