Getdate (Date.getdate Method); Getday (Date.getday Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

See also
getMonth (Date.getMonth method)
(Date.getFullYear method)

getDate (Date.getDate method)

public getDate() : Number
Returns the day of the month (an integer from 1 to 31) of the specified Date object according
to local time. Local time is determined by the operating system on which Flash Player is
running.
Availability: ActionScript 1.0; Flash Player 5
Returns
- An integer.
Number
Example
The following example creates a new Date object and concatenates the returned values of
,
Date.getMonth()
Date.getDate()
var today_date:Date = new Date();
var date_str:String = (today_date.getDate()+"/
"+(today_date.getMonth()+1)+"/"+today_date.getFullYear());
trace(date_str); // displays current date in United States date format
See also
getMonth (Date.getMonth method)

getDay (Date.getDay method)

public getDay() : Number
Returns the day of the week (0 for Sunday, 1 for Monday, and so on) of the specified Date
object according to local time. Local time is determined by the operating system on which
Flash Player is running.
Availability: ActionScript 1.0; Flash Player 5
Returns
- An integer representing the day of the week.
Number
482
ActionScript classes
,
getDate (Date.getDate method)
, and
Date.getFullYear():
,
getFullYear (Date.getFullYear method)
,
getFullYear

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF