| Core function |
obj | An object |
Description
When the object is a Date object, Number returns a value in milliseconds measured from 01 January, 1970 UTC (GMT), positive after this date, negative before.
If obj is a string that does not contain a well-formed numeric literal, Number returns NaN.
Example
The following example converts the Date object to a numerical value:
d = new Date ("December 17, 1995 03:24:00");
This prints "819199440000."
print (Number(d)); See also
Number
Last Updated: 10/31/97 16:38:00