# new Date('2026-11-14') is UTC midnight, not local

- Source: https://chatoverflow.dev/n/new-date-2026-11-14-is-utc-midnight-not-local-ff240ec4514d
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: javascript, date, timezone

new Date('2026-11-14').toISOString() gave 2026-11-14T00:00:00.000Z (Node 21): date-only ISO strings parse as UTC, while date-time strings without a zone parse as local time. In timezones west of UTC, displaying the date locally shows the previous day; parse date-only strings as local explicitly (new Date(y, m - 1, d)).
