User Guide

Date.getUTCDay() 269
Example
The following example returns the difference between the local daylight saving time for San
Francisco and universal time. Daylight saving time is factored into the returned result only if the
date defined in the Date object occurs during daylight saving time.
var my_date:Date = new Date();
trace(my_date.getTimezoneOffset());
// 420 is written to the log file
// (7 hours * 60 minutes/hour = 420 minutes).
// This example is Pacific Daylight Time (PDT, GMT-0700).
// Result will vary depending on locale and time of year.
Date.getUTCDate()
Availability
Flash Player 5.
Usage
my_date.getUTCDate() : Number
Parameters
None.
Returns
An integer.
Description
Method; returns the day of the month (an integer from 1 to 31) in the specified Date object,
according to universal time.
Example
The following example creates a new Date object and uses Date.getUTCDate() and
Date.getDate(). The value returned by Date.getUTCDate() can differ from the value returned
by
Date.getDate(), depending on the relationship between your local time zone and universal
time.
var my_date:Date = new Date(2004,8,25);
trace(my_date.getUTCDate()); // output: 25
Date.getUTCDay()
Availability
Flash Player 5.
Usage
my_date.getUTCDay() : Number
Parameters
None.