SWiSH Player Support
SWF5 or later - Supported Internally
Syntax
DateObj.getYear()
Arguments
none
Returns
an integer
Description
Method; returns an integer representing the year for the Date Object according to Local Time. The year is the full (4-digit) year minus 1900.
Sample
onFrame (1) {
theDate = new Date();
trace(theDate.getYear());
}
// If the year on your system is 2003 ... "103" will be displayed in the debug window.