JavaScript Reference/Javascript Methods/setUTCMonth
"setUTCMonth()" Example
<source lang="javascript">
<html> <body> <button onclick="var myDate = new Date(); myDate.setUTCMonth(2); alert(myDate);">SETUTCMONTH</button> </body> </html>
</source>
"setUTCMonth()" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |Date | +----------------+--------------------------------------------------------------+
</source>
"setUTCMonth()" Syntax, Parameters and Note
<source lang="javascript">
Note: Use UTC time to set the month.
Syntax:
dateName.setUTCMonth(param1, param2) Parameters:
param1 Required; the month. Value: 0 to 11. param2 Optional; the day of the month. Value: 1 to 31. </source>