Mega Code Archive

 
Categories / JavaScript Tutorial / Date
 

Date setTime()

Syntax date.setTime(milliseconds) The setTime() method sets the time in the Date object to the argument milliseconds, an integer representing the number of milliseconds between midnight January 1, 1970 (GMT) to the desired date and time. <html>     <script language="JavaScript">     <!--     theDate = new Date();     theDate.setTime(113220361234);     document.write(theDate.toString());     -->     </script>     </html>