Skip to main content

YEAR

Deprecated version

This document refers to a deprecated version of the RQL programming language.

Please go here for documentation related to the latest supported version.

Extract the year component (as an integer) from a date or timestamp.

Syntax
YEAR(<date or timestamp>)
Example
year(timestamp "2018-02-01 11:02:01") // 201