year
Year component of a date.
Syntax
Section titled “Syntax”v = year(serial_number)Description
Section titled “Description”Returns the four-digit year of the date represented by serial_number.
Example
Section titled “Example”year(date(2026, 4, 28)) % 2026