Year method (date)

Gets the year for this date.

Syntax

date.Year

Returns the year component of date, expressed as a number between 1 and 9999.

Example

The year is: {{ CurrentDate.Year }}

The above example would output: The year is: 2024