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

'getUTCMonth()' Example

    
<html>
<body>
<button onclick="var myDate = new Date(); 
                 alert(myDate.getUTCMonth());">get UTC month</button>
</body>
</html>

    
      
      








Related examples in the same category

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