DRAFTThis page is not published. Only visible in development mode.
date module

date::year

Extract the year from a date value.

Syntax

RQL

Parameters

NameTypeDescription
date_valueDate/TimestampThe date to extract the year from

Return Value

Returns an integer representing the year (e.g., 2024).

Examples

$ Extract year from date
$ ctrl+enter to run

Related Functions