Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
priya__patel
Contributor
Contributor

Changing date from 01-Jan-21(General) to Date format

Hi, I have dates in the format "01-Jan-21" which doesn't fit any given date formats in Qlik to map it to. Any ideas on how I can convert this to a date format supported in Qlik? Thanks in advance!

1 Solution

Accepted Solutions
MayilVahanan

Hi 

If your dates are in text format, try with date# function like below

=Date(Date#('01-Jan-21', 'DD-MMM-YY'),'DD/MM/YYYY')

- it gives 01/01/2021

You can change the date format based on ur requirement

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

1 Reply
MayilVahanan

Hi 

If your dates are in text format, try with date# function like below

=Date(Date#('01-Jan-21', 'DD-MMM-YY'),'DD/MM/YYYY')

- it gives 01/01/2021

You can change the date format based on ur requirement

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.