year
year(): Integer;
The year method of the Date primitive type returns the year (for the date value of the receiver) as an integer; for example, 1999.
The following example shows the use of the year method.
if text <> "" then calendar.changeType := calendar.ChangeType_Day; calendar.date.setDate(text.Integer, calendar.date.month, calendar.date.year); endif;