Method
Date.setUTCHours()
Date.setUTCMilliseconds()
Date.setUTCMinutes()
Date.setUTCMonth()
Date.setUTCSeconds()
Date.setYear()
Date.toString()
Date.UTC()
Constructor for the Date class
Availability
Flash Player 5.
Usage
new Date() : Date
new Date(timeValue:Number) : Date
new Date(year:Number, month:Number [, date:Number [, hour:Number [,
minute:Number [, second:Number [, millisecond:Number ]]]]]) : Date
Parameters
A value of 0 to 99 indicates 1900 through 1999; otherwise all four digits of the year must
year
be specified.
An integer from 0 (January) to 11 (December).
month
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
A reference to a Date object.
Description
Sets the hour according to universal time. Returns the new time
in milliseconds.
Sets the milliseconds according to universal time. Returns the new
time in milliseconds.
Sets the minutes according to universal time. Returns the new time
in milliseconds.
Sets the month according to universal time. Returns the new time
in milliseconds.
Sets the seconds according to universal time. Returns the new time
in milliseconds.
Sets the year according to local time.
Returns a string value representing the date and time stored in the
specified Date object.
Returns the number of milliseconds between midnight on January 1,
1970, universal time, and the specified time.
An integer from 0 to 999. This parameter is optional.
Date class
239
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers