Getutcday (Date.getutcday Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Returns
- An integer.
Number
Example
The following example creates a new Date object and uses
. The value returned by
Date.getDate()
returned by
Date.getDate(),
and universal time.
var my_date:Date = new Date(2004,8,25);
trace(my_date.getUTCDate()); // output: 25
See also
getDate (Date.getDate method)

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 Lite 2.0
Returns
- An integer.
Number
Example
The following example creates a new Date object and uses
. The value returned by
Date.getDay()
returned by
Date.getDay(),
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
See also
getDay (Date.getDay method)
Date.getUTCDate()
depending on the relationship between your local time zone
Date.getUTCDay()
depending on the relationship between your local time zone
Date.getUTCDate()
can differ from the value
and
Date.getUTCDay()
can differ from the value
and
Date
339

Advertisement

Table of Contents
loading

Table of Contents