Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
Coming your way, the Qlik Data Revolution Virtual Summit. October 27-29. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Creator II
Creator II

Extract Year from Date

Hi ,

I have date field with below records. Please help me to derive year field from below date field.

Date

CMM 01 May 2020

CCM 02 Apr 2019

CCM 05 Aug 2020

CCM 10 April 2020

Thanks in advance

Labels (1)
1 Solution

Accepted Solutions
Luminary
Luminary

To get the number: RIGHT(Date,4) AS Year
To format as date: DATE(DATE#(RIGHT(Date,4),'YYYY'),'YYYY') AS DateYear

View solution in original post

1 Reply
Luminary
Luminary

To get the number: RIGHT(Date,4) AS Year
To format as date: DATE(DATE#(RIGHT(Date,4),'YYYY'),'YYYY') AS DateYear

View solution in original post