JavaScript · Dates and internationalisation
Date arithmetic
Dates compare and add through millisecond timestamps. Mutating methods such as setDate exist too.
Syntax
date.getTime() + msExample
Try it
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.