/

HTML / CSS / JavaScript Tutorial

JavaScript Date method: now()

[this page | pdf | back links]

The now() method (when applied to the JavaScript Date object) returns the current date and time, as number of milliseconds since 1 January 1970 00:00:00.

 

It has the following syntax (with no parameters):

 

Date.now()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Dates


Desktop view | Switch to Mobile