Returns
An integer.
Description
Method; returns the day of the week (0 for Sunday, 1 for Monday, and so on) of the specified
Date object, according to universal time.
Example
The following example creates a new Date object and uses
Date.getDay()
Date.getDay(),
var today_date:Date = new Date();
trace(today_date.getDay()); // output will be based on local timezone
trace(today_date.getUTCDay()); // output will equal getDay() plus or minus one
Date.getUTCFullYear()
Availability
Flash Player 5.
Usage
my_date.getUTCFullYear() : Number
Parameters
None.
Returns
An integer.
Description
Method; returns the four-digit year of the specified Date object, according to universal time.
Example
The following example creates a new Date object and uses
Date.getFullYear()
value returned by
on the relationship between your local time zone and universal time.
var today_date:Date = new Date();
trace(today_date.getFullYear()); // display based on local timezone
trace(today_date.getUTCFullYear()); // displays getYear() plus or minus 1
270
Chapter 6: ActionScript Core Classes
. The value returned by
depending on the relationship between your local time zone and universal time.
. The value returned by
Date.getFullYear()
Date.getUTCDay()
can differ from the value returned by
Date.getUTCDay()
Date.getUTCFullYear()
Date.getUTCFullYear()
if today's date is December 31 or January 1
and
and
may differ from the
depending
,
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?