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

'getDay()' Example

    
<html>
<body>
<button onclick="var myDate = new Date(); alert(myDate.getDay());">
get day
</button>
</body>
</html>

    
      
      








Related examples in the same category

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