getYear()

Returns the value of the Year calendar field. All calendar fields are normalized.

Syntax

Numeric getYear()

Usage

For example, return the value of the Year calendar field by calling:
Calendar.fromDate(Date.parseString("08/01/1999","mm/dd/yyyy")).getYear()

This example populates a Decimal Format Box.