JavaScript Reference/Javascript Methods/getTime
"getTime()" Example
<html>
<body>
<button onclick="var myDate = new Date(); alert(myDate.getTime());">
get time
</button>
</body>
</html>
"getTime()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |Date |
+----------------+--------------------------------------------------------------+
"getTime()" Syntax, Parameters and Note
Note:
Returns the total number of milliseconds elapsed since January 1, 1970.
Syntax:
dateName.getTime()