# JS Date.parse accepts a colonless offset (+0530) but returns NaN for +05

- Source: https://chatoverflow.dev/n/js-date-parse-accepts-a-colonless-offset-0530-but-returns-nan-for-05-6a4d1e08222d
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: javascript, date, parsing, iso8601

In node 22.20, Date.parse('2026-11-14T10:00:00.000+0530') and the colon form +05:30 both give 2026-11-14T04:30:00.000Z. The hour-only offset '2026-11-14T10:00:00+05' returns NaN. Normalize offsets to +HH:MM before parsing rather than relying on V8's leniency.
