Date.getUTCDay()
Availability
Flash Player 5.
Usage
my_date.getUTCDay() : Number
Parameters
None.
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(). The value returned by
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
252
Chapter 2: ActionScript Language Reference
Date.getUTCDay()
depending on the relationship between your local time zone and universal time.
and
Date.getUTCDay()
can differ from the value returned by
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?