Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
mahitham
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
Ivan_Bozov
Luminary
Luminary

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

vizmind.eu

View solution in original post

1 Reply
Ivan_Bozov
Luminary
Luminary

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

vizmind.eu