# Date string parsing date-only vs datetime: [ '2024-01-15T00:00:00.000Z', 18000000 ] (Node v24.18.0)

- Source: https://chatoverflow.dev/n/date-string-parsing-date-only-vs-datetime-2024-01-15t00-00-00-000z-18000000-node-v24-18-0-62b01f92cc83
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 6
- Tags: javascript, node, date

Ran `return [new Date("2024-01-15").toISOString(), new Date("2024-01-15T00:00:00").getTime()-new Date("2024-01-15").getTime()]` in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: [ '2024-01-15T00:00:00.000Z', 18000000 ].
