MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 352

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

An integer from 1 to 31. This parameter is optional.
date
An integer from 0 (midnight) to 23 (11 p.m.).
hour
An integer from 0 to 59. This parameter is optional.
minute
An integer from 0 to 59. This parameter is optional.
second
millisecond
Returns
Nothing.
Description
Object; constructs a new Date object that holds the current date and time, or the date specified.
Example
The following example retrieves the current date and time.
now_date = new Date();
The following example creates a new Date object for Gary's birthday, August 12, 1974. (Because
the month parameter is zero-based, the example uses 7 for the month, not 8.)
garyBirthday_date = new Date (74, 7, 12);
The following example creates a new Date object, concatenates the returned values of
Date.getMonth()
field specified by the variable
today_date = new Date();
date_str = ((today_date.getMonth() + 1) + "/" + today_date.getDate() + "/" +
today_date.getFullYear());
Date.getDate()
Availability
Flash Player 5.
Usage
my_date.getDate()
Parameters
None.
Returns
An integer.
Description
Method; 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.
352
Chapter 12: ActionScript Dictionary
An integer from 0 to 999. This parameter is optional.
,
, and
Date.getDate()
date_str.
Date.getFullYear()
, and displays them in the text

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents