Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Date > getUTCDay (Date.getUTCDay method) | |||
public getUTCDay() : Number
Returns the day of the week (0 for Sunday, 1 for Monday, and so on) of the specified Date object, according to universal time.
Availability: ActionScript 1.0; Flash Player 5
Number - An integer.
The following example creates a new Date object and uses Date.getUTCDay() and Date.getDay(). The value returned by Date.getUTCDay() can differ from the value returned by Date.getDay(), depending on the relationship between your local time zone and universal time.
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
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/00001593.html