'setUTCMonth()' Example : setUTCMonth « Javascript Methods « JavaScript Reference

'setUTCMonth()' Example

    
<html>
<body>
<button onclick="var myDate = new Date(); myDate.setUTCMonth(2); alert(myDate);">SETUTCMONTH</button>
</body>
</html>

    
      
      

Related examples in the same category

1.'setUTCMonth()' Syntax, Parameters and Note
2.'setUTCMonth()' is applied to