Set Milliseconds : Date Set « Date Time « JavaScript DHTML






Set Milliseconds

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

    
      
      








Related examples in the same category

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