getYear

getYear()

Gets the year component of the date represented by this instance.

Returns: The year, between 1 and 9999.