Date.setTime() : setTime : Date JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Date » setTime »

 

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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Date
» setTime