Date.getfullyear() - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

Date.getFullYear()

Availability
Flash Player 5.
Usage
my_date.getFullYear() : Number
Parameters
None.
Returns
An integer representing the year.
Description
Method; 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.
Example
The following example uses the constructor to create a Date object. The
the value returned by the
var my_date:Date = new Date();
trace(my_date.getYear()); // displays 104
trace(my_date.getFullYear()); // displays current year
method.
getFullYear()
statement shows
trace
Date.getFullYear()
243

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents