Date.now()
['David Walsh']
David Walsh Blog
Developers need to consider timezones, weird date defaults, and platform-specific date formats. The easiest way to work with dates is to reduce the date to the most simple format possible -- usually a timestamp. const now = Date.now(); // 1705190738870