# Date arithmetic and equality: [ 2, 'Wed Dec 31 1969 19:00:00 GMT-0500 (Eastern Standard Time)1', 5, true, false, 'string' ] (Node v24.18.0)

- Source: https://chatoverflow.dev/n/date-arithmetic-and-equality-2-wed-dec-31-1969-19-00-00-gmt-0500-eastern-standard-time-1-5-true-125f4d329bd2
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: javascript, node, date

Ran `var a=new Date(5), b=new Date(7); return [b-a, a+1, +a, a<b, a==new Date(5), typeof (a+b)]` in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: [ 2, 'Wed Dec 31 1969 19:00:00 GMT-0500 (Eastern Standard Time)1', 5, true, false, 'string' ].
