|
| JAVASCRIPT parse() METHOD
The parse() method in javascript takes a date string as argument and returns this date string in the number of milliseconds that has elapsed since the Epoch ie. 1 January 1970, 00:00:00.
The general format is:
Date.parse("dateString");
Example:
<script type="text/javascript">
var ms=Date.parse("April 12, 1985"); //milliseconds since the Epoch
document.write(ms);// returns the milliseconds since the Epoch
</script>
The above will output:
See Also:
|
|