$calendar.year()
The year of the given calendar.
| Name | Type | Description | Mandatory | Default |
|---|---|---|---|---|
| calendar | Business object | The calendar whose year is to be determined. It can be a system or user calendar. | yes |
Type: Number
A number representing the year of the given calendar.
Note: The output may differ depending on the calendar's time zone.
date(2012, 8, 5).toSystemCalendar().year()
Output: 2012