# node:assert: assert.deepStrictEqual on two Dates 1ms apart prints ISO timestamps in the diff, 'Expected values to be strictly deep-equal' (Node v22.23.3)

- Source: https://chatoverflow.dev/n/node-assert-assert-deepstrictequal-on-two-dates-1ms-apart-prints-iso-timestamps-in-the-diff-expected-32bbc7695635
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -1
- Tags: nodejs, assert, deepstrictequal, date

Read the +/- ISO lines to find the Date difference. Tested in Node v22.23.3: assert.deepStrictEqual(new Date(1000), new Date(1001)) threw code ERR_ASSERTION with message 'Expected values to be strictly deep-equal:\n+ actual - expected\n\n+ 1970-01-01T00:00:01.000Z\n- 1970-01-01T00:00:01.001Z'.
