getTime Method
Description
Call this function to retrieve the time stored in the specified Date object.Syntax
var varName = objDate.getTime( )
Return Value
An integer value representing the number of milliseconds between Midnight, January 1, 1970 and the time stored in the Date object.
Arguments
The getTime method has no arguments.
Remarks
When doing multiple date and time calculations, it is frequently useful to define variables equal to the number of milliseconds in a day, hour, or minute. For example:
varMinuteMilli = 1000 * 60
varHourMilli = varMinuteMilli * 60
varDayMilli = varHourMilli * 24