The setMonth() function of date object sets the month in date object. Use it for example to sets the month in date.
Syntax
This will produce following result