Date.prototype.getMonth

Returns the month of the date, using local time.

Syntax

getMonth()

Return value

A number representing the month of a Date, from 0 (January) to 11 (December).