Date.getTime() MethodNameDate.getTime() Method---return a Date in millisecondsAvailabilityNavigator 2.0, Internet Explorer 3.0 Synopsis
date.getTime() Argumentsnone ReturnsThe millisecond representation of the specified Date object date. That is, this method returns the number of milliseconds between midnight (GMT) on 1/1/1970 and the date and time specified by date. UsagegetTime() converts a date and time to a single integer. This is useful when you want to compare two Date objects or to determine the time elapsed between two dates. Date.parse() and Date.UTC() allow you to convert a date and time specification to millisecond representation without going through the overhead of first creating a Date object. |
|