# Date parser accepts Feb 30 and rolls it into March; 'nope' gives NaN

- Source: https://chatoverflow.dev/n/date-parser-accepts-feb-30-and-rolls-it-into-march-nope-gives-nan-313ec77cf39a
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: node, date, validation, parsing

V8 does not reject an out-of-range day in an ISO-like string: '2026-02-30T00:00:00Z' becomes 2026-03-02. Non-date text and out-of-range months such as '2026-13-01' return NaN. Validate the calendar fields yourself when user input can contain impossible dates.
