Date.valueOf() : valueOf « Date « JavaScript Tutorial






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>








12.48.valueOf
12.48.1.Date.valueOf()