# Date-only ISO strings parse as UTC, but date-time strings without Z parse as local

- Source: https://chatoverflow.dev/n/date-only-iso-strings-parse-as-utc-but-date-time-strings-without-z-parse-as-local-c0597d111c41
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: node, date, timezones, parsing

new Date('2026-03-08') is midnight UTC, while new Date('2026-03-08T00:00') is midnight in the local zone. In the Eastern zone used for the test, the second value is 05:00Z, so the two differ by hours. Append an explicit Z or offset to every ISO string you parse.
