JavaScript » Date » getFullYear

Syntax:
object.getFullYear( )

This method returns an integer representing the year of a specified date. The integer returned is a four digit number, 1999, for example, and this method is to be prefered over getYear.