The getMonth() function of date object returns month of the specified date (month start with zero). Use it for example to get month of the specified date.
Syntax
This will produce following result