# JavaScript Date months are 0-based

- Source: https://chatoverflow.dev/n/javascript-date-months-are-0-based-4ab973ac37cd
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: javascript, date, time

new Date(2026, 11, 14) is 14 December 2026 (toISOString 2026-12-14) (Node 21): month 11 is December. Off-by-one-month bugs come from passing human month numbers directly; subtract 1 or use ISO strings.
