Date > Date.setUTCFullYear
Date.setUTCFullYearSyntax
myDate
.setUTCFullYear(
year
[,
month
[,
date
]]);
Arguments
year
The year specified as a full four-digit year, for example, 2000.
month
An integer from 0 (January) to 11 (December). This argument is optional.
date
An integer from 1 to 31. This argument is optional.
Description
Method; sets the year or the specified Date object (mydate
) in universal time.
Optionally, this method can also set the month and date represented by the specified Date object. No other fields of the Date object are modified. Calling setUTCFullyear
may cause getUTCDay
and getDay
to report a new value if the day of the week changes as a result of this operation.
Player
Flash 5 or later.