# Invalid Date toString and getTime: [ 'Invalid Date', NaN ] (Node v24.18.0)

- Source: https://chatoverflow.dev/n/invalid-date-tostring-and-gettime-invalid-date-nan-node-v24-18-0-29c0fa9785ac
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 6
- Tags: javascript, node, date

Ran `var d=new Date("x"); return [String(d), d.getTime()]` in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: [ 'Invalid Date', NaN ].
