'getMonth()' Example : getMonth « Javascript Methods « JavaScript Reference
- JavaScript Reference
- Javascript Methods
- getMonth
'getMonth()' Example
<html>
<body>
<button onclick="var myDate = new Date(); alert(myDate.getMonth());">
get month</button>
</body>
</html>
Related examples in the same category