Date > Date.setYear

Date.setYear

Syntax

myDate.setYear(year);

Arguments

year A four-digit number, for example, 2000.

Description

Method; sets the year for the specified date object in local time. Local time is determined by the operating system on which the Flash Player is running.

Player

Flash 5 or later.