Date.valueOf() (Method)

Returns a number that is the date and time value for the receiving Date object.

Availability:

ECMAScript edition - 2
JavaScript - 1.1
JScript - 3.0
Internet Explorer - 4.0
Netscape - 3.0
Property/method value type:Number primitive
JavaScript syntax:-myDate.valueOf()

This method returns a numeric value representing the date and time in milliseconds UTC.

See also:Cast operator, Date.prototype, valueOf()

Cross-references:

ECMA 262 edition 2 - section - 15.9.5.3

ECMA 262 edition 3 - section - 15.9.5.8