Set Minutes : Date Set « Date Time « JavaScript DHTML






Set Minutes

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

    
      
      








Related examples in the same category

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