Name

Date.getYear( ) Method — the year, relative to 1900

Availability

Flash 5

Synopsis

date.getYear( )

Returns

The value of date .getFullYear( ) -1900. For example, getYear( ) of 1999 is 99, getYear( ) of 2001 is 101, and getYear( ) of 1800 is -100. This function is most useful for dates in the 20th century.

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.