JavaScript Reference/Javascript Methods/parse
"parse()" Example
<html>
<body>
<button onclick="var myDate = new Date();
alert(Date.parse(myDate));">parte a date</button>
</body>
</html>
"parse()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |Date |
+----------------+--------------------------------------------------------------+
"parse()" Syntax, Parameters and Note
Note:
Returns the number of milliseconds elapsed between
the specified date and January 1, 1970.
Syntax:
dateName.parse(param1)
Parameters:
param1 Required; the ending date of the calculation.