Date.prototype.setMonth

Sets the month value in the Date object using local time.

Syntax

setMonth(month, day?)

Parameters