js current date utc

 

 

 

 

JavaScripts Date.getTime() returns the numeric value of the specified date as the number of milliseconds since January 1, 1970, 00:00:00 UTC (negative for priorQuestions on StackOverflow: How do you get a timestamp in JavaScript? and How to get current epoch/unix time in JS? JavaScript Get Timestamp uses Date.now() to get the UTC Timestamp in milliseconds. Date.now() Works for all major browsers.In the above example we have shown how to get current date and timestamp in javascript. An integer, representing the number of milliseconds between midnight January 1, 1970 (GMT) to the date and time specified, is returned from the method. The integer can then be used to create a new Date object.