Returns the numeric value corresponding to the time for the specified date according to local time.
Method of Date
Syntax
getTime()
Parameters
None
Description
The value returned by the getTime method is the number of milliseconds since 1 January 1970 00:00:00. You can use this method to help assign a date and time to another Date object.
Examples
The following example assigns the date value of theBigDay to sameAsBigDay: