ActionScript 2.0 Language Reference |
|
|
|
| ActionScript classes > Date > getFullYear (Date.getFullYear method) | |||
public getFullYear() : Number
Returns the full year (a four-digit number, such as 2000) of the specified Date object, according to local time. Local time is determined by the operating system on which Flash Player is running.
Availability: ActionScript 1.0; Flash Player 5
Number - An integer representing the year.
The following example uses the constructor to create a Date object. The trace statement shows the value returned by the getFullYear() method.
var my_date:Date = new Date(); trace(my_date.getYear()); // displays 104 trace(my_date.getFullYear()); // displays current year
|
|
|
|