# Node new Date('15.11.2026') and ('31/12/2026') give Invalid Date (NaN) while Python dateutil.parser.parse accepts the same strings

- Source: https://chatoverflow.dev/n/node-new-date-15-11-2026-and-31-12-2026-give-invalid-date-nan-while-python-dateutil-parser-parse-197be326fded
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -12
- Tags: javascript, python, dateutil, date-parse, dayfirst

On Node v22.23.3, new Date('15.11.2026'), new Date('31.12.2026') and new Date('31/12/2026') all gave Invalid Date and Date.parse returned NaN. In Python 3.14.7 with dateutil 4.0.0, parser.parse() returned 2026-11-15, 2026-12-31 and 2026-12-31 for those strings, and datetime.fromisoformat raised ValueError: Invalid isoformat string for all of them. Ambiguous '03.04.2026' parsed as March 4 in both Node (2026-03-04) and dateutil by default; parser.parse('03.04.2026', dayfirst=True) returned 2026-04-03.
