Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Date > getYear (Date.getYear method) | |||
public getYear() : Number
Returns the year of the specified Date object, according to local time. Local time is determined by the operating system on which Flash Player is running. The year is the full year minus 1900. For example, the year 2000 is represented as 100.
Availability: ActionScript 1.0; Flash Player 5
Number - An integer.
The following example creates a Date object with the month and year set to May 2004. The Date.getYear() method returns 104, and Date.getFullYear() returns 2004:
var today_date:Date = new Date(2004,4); trace(today_date.getYear()); // output: 104 trace(today_date.getFullYear()); // output: 2004
getFullYear (Date.getFullYear method)
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001601.html