freeCodeCamp/guide/english/javascript/standard-objects/date/date-now/index.md

378 B

title
Date Now

Date Now

The Date.now() method returns the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC..

Syntax

var timeInMs = Date.now();

Example

Date.now(); 
// 1508783660969

More Information:

MDN Documentation