Name

Date.valueOf( ) Method — the number of milliseconds between January 1, 1970and the time of the Date object

Availability

Flash 5

Synopsis

date.valueOf( )

Returns

An integer expressing the number of milliseconds between the time of the Date object and midnight, January 1, 1970. Positive if after January 1, 1970; negative if before.

Description

In practice, Date.valueOf( ) is equivalent to Date.getTime( ).

See Also

Date.toString( )

Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.