Set Seconds : Date Set « Date Time « JavaScript DHTML






Set Seconds

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

    
      
      








Related examples in the same category

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