Date > Date.setFullYear

Date.setFullYear

Syntax

myDate.setFullYear(year [, month [, date]] );

Arguments

year A four-digit number specifying a year. Two-digit numbers do not represent years; for example, 99 is not the year 1999, but the year 99.

month An integer from 0 (January) to 11 (December). This argument is optional.

date A number from 1 to 31. This argument is optional.

Description

Method; sets the year of the specified Date object, according to local time. If the month and date arguments are specified, they are also set to local time. Local time is determined by the operating system on which the Flash Player is running.

The results of getUTCDay and getDay may change as a result of calling this method.

Player

Flash 5 or later.