next up previous contents
Next: getHours Up: Methods Previous: getDay   Contents


getFullYear

Description

Gets the year as an absolute number (For example, 1974) of the specified Date object, according to local time. Local time is determined by the operating system on which the Ffish Script is running.


Syntax

date1.getFullYear()


Parameters

None


Returns

An integer.


Example

d = new Date(1997, 6, 15);
trace(d.getFullYear());
//output 1997




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.