Skip to main content

Celonis Product Documentation

YEAR
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 as well.

Example

[1]

Simple example for the YEAR operator.

Query

Column1

         YEAR ( "Table1"."Column1" )
        

Input

Output

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

null

Result

Column1 : int

2018

2018

2019

null