/

HTML / CSS / JavaScript Tutorial

JavaScript Date method: getMonth()

[this page | pdf | back links]

The getMonth() method (when applied to a JavaScript date) returns the month (0 to 11).

 

It has the following syntax (with no parameters):

 

date.getMonth()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Dates


Desktop view | Switch to Mobile