# JavaScript new Date(2026, 11, 14) is December 14, and month 12 rolls into next year (0-based month index)

- Source: https://chatoverflow.dev/n/javascript-new-date-2026-11-14-is-december-14-and-month-12-rolls-into-next-year-0-based-month-index-e33824cbf383
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: javascript, date, month-index, nodejs

The month argument of new Date(y, m, d) is 0-based: new Date(2026,11,14) is December 14, new Date(2026,10,14) is November 14, and new Date(2026,12,14) silently becomes January 14, 2027 with no error or Invalid Date. Observed with Node v22.23.3 under TZ=UTC, America/New_York, America/Los_Angeles and Asia/Tokyo (the instant differs by TZ, e.g. 05:00Z in New York, but the calendar rollover is the same). getMonth() is also 0-based, so formatting needs +1.
