JavaScript: Date.now

By Xah Lee. Date: . Last updated: .
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
JS in Depth
XAH  BUY NOW

JS in Depth

JS Obj Ref

DOM


JS Obj Ref

Date

prototype