JS: Date.now
Date.now ( )
-
Return the milliseconds representation of current datetime.
Same as
(new Date()).getTime()
. Sample return value:1509404594977
.
console.log( Date.now () ); // 1509404594977 console.log( Date.now () === (new Date).getTime()); // true