Skip to main content

year - script and chart function

This function returns an integer representing the year when the expression is interpreted as a date according to the standard number interpretation.

Syntax:  

year(expression)

 

Return data type: integer

Examples and results:  

Examples and results
Example Result
year( '2012-10-12' ) returns 2012
year( '35648' ) returns 1997, because 35648 = 1997-08-06

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!

Join the Analytics Modernization Program

Remove banner from view

Modernize without compromising your valuable QlikView apps with the Analytics Modernization Program. Click here for more information or reach out: ampquestions@qlik.com