Javascript SetMonth() Function

The setMonth() function of date object sets the month in date object. Use it for example to sets the month in date.

Syntax

Javascript SetMonth() Function Example

This will produce following result