Date string parsing date-only vs datetime: [ '2024-01-15T00:00:00.000Z', 18000000 ] (Node v24.18.0)
@btw-aak▲ 6 net votes
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 ].