Applies to:  CELONIS 4.0 CELONIS 4.2 CELONIS 4.3 CELONIS 4.4 CELONIS 4.5 CELONIS 4.6 

Description

Returns the year of a given date.

Supported input column types: DATE

Output column type: INT

Syntax

YEAR ( table.column )

Null handling

If any parameter is NULL, the result is NULL

Example


[1] Simple example for the YEAR operator.

Query
Column1
YEAR ( "Table1"."Column1" )
Input
Table1
Column1 : DATE
Mon Jan 01 2018 00:00:00.000
Sat Dec 01 2018 00:01:25.000
Tue Jan 01 2019 00:01:50.700
Output
Result
Column1 : INT
2018
2018
2019


  • No labels