/

HTML / CSS / JavaScript Tutorial

JavaScript Date method: getTime()

[this page | pdf | back links]

The getTime() method (when applied to a JavaScript date) returns the number of milliseconds since 1 January 1970 00:00:00.

 

It has the following syntax (with no parameters):

 

date.getTime()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Dates


Desktop view | Switch to Mobile