Returns the month of the date, where 0 represents January and 11 represents December.
var myDate = new Date(); console.log(myDate.getMonth());
The code above generates the following result.