Set Date : Date Set « Date Time « JavaScript DHTML






Set Date

    
<html>
<body>
<button onclick="var myDate = new Date(); 
                 myDate.setDate(20); 
                 alert(myDate);">Date: set Date</button>
</body>
</html>

    
      
      








Related examples in the same category

1.Set Full Year
2.Set Hours
3.Set Milliseconds
4.Set Minutes
5.Set Month
6.Set Seconds
7.Set Time
8.Set Year