setYear()
Top  Previous  Next


SWiSH Player Support
SWF5 or later - Supported Internally

Syntax
DateObj.setYear(year)

Arguments
year: A two-digit number between 0 and 99, or a full four-digit number used to represent the year.

Returns
an integer

Description
Method; This method sets the current year for the Date Object specified according to Local Time. If the year argument is a two digit number between 0 and 99, then that number is added to 1900 then used as the year. If the year argument is a four-digit number, then that number by itself is used to represent the year.