Date.valueOf() : valueOf : Date JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Date » valueOf »

 

Date.valueOf()








This method returns the equivalence of the Date object in milliseconds.

The milliseconds are expressed as an integer representing the number of milliseconds between midnight January 1, 1970 (GMT) to the date and time specified in the Date object.












<html>
    <script language="JavaScript">
    <!--
    theDate = new Date();
    document.write(theDate.valueOf());
    -->
    </script>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Date
» valueOf