User Guide

Date class 239
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
year
A value of 0 to 99 indicates 1900 through 1999; otherwise all four digits of the year must
be specified.
month An integer from 0 (January) to 11 (December).
date An integer from 1 to 31. This parameter is optional.
hour An integer from 0 (midnight) to 23 (11 p.m.).
minute An integer from 0 to 59. This parameter is optional.
second An integer from 0 to 59. This parameter is optional.
millisecond An integer from 0 to 999. This parameter is optional.
Returns
A reference to a Date object.
Date.setUTCHours()
Sets the hour according to universal time. Returns the new time
in milliseconds.
Date.setUTCMilliseconds()
Sets the milliseconds according to universal time. Returns the new
time in milliseconds.
Date.setUTCMinutes()
Sets the minutes according to universal time. Returns the new time
in milliseconds.
Date.setUTCMonth()
Sets the month according to universal time. Returns the new time
in milliseconds.
Date.setUTCSeconds()
Sets the seconds according to universal time. Returns the new time
in milliseconds.
Date.setYear()
Sets the year according to local time.
Date.toString()
Returns a string value representing the date and time stored in the
specified Date object.
Date.UTC()
Returns the number of milliseconds between midnight on January 1,
1970, universal time, and the specified time.
Method Description