JavaScript Dates

The getMonth() Method

Return the month of a date as a number from 0 to 11.

To get the correct month number, you must add 1: