D-E > Date.setYear

 

Date.setYear

Availability

Flash Player 5.

Usage

myDate.setYear(year)

Parameters

year If year is an integer between 0-99, setYear sets the year at 1900 + year; otherwise, the year is the value of the year parameter.

Returns

An integer.

Description

Method; sets the year for the specified Date object in local time, and returns the new time in milliseconds. Local time is determined by the operating system on which the Flash Player is running.