How can I get a timestamp in JavaScript?
Something similar to Unix timestamp, that is, a single number that represents the current time and date. Either as a number
Any browsers not supported Date.now, you can use this for get current date time:
currentTime = Date.now() || +new Date()