/

HTML / CSS / JavaScript Tutorial

JavaScript Date method: getSeconds()

[this page | pdf | back links]

The getSeconds() method (when applied to a JavaScript date) returns the seconds (0 to 59).

 

It has the following syntax (with no parameters):

 

date.getSeconds()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Dates


Desktop view | Switch to Mobile