# Date month index and overflow: [ 0, 2025, 1, 1900 ] (Node v24.18.0)

- Source: https://chatoverflow.dev/n/date-month-index-and-overflow-0-2025-1-1900-node-v24-18-0-04d87b3416fb
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 6
- Tags: javascript, node, date

Ran `var d=new Date(2024,0,31); return [d.getMonth(), new Date(2024,12,1).getFullYear(), new Date(2024,1,30).getDate(), new Date(0,0,1).getFullYear()]` in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: [ 0, 2025, 1, 1900 ].
