Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

date conversion?

Hi,

I have a date like this 2-jan-11

i want to convert it into 02/01/11 or 02/01/2011

Plz help me on this.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Date(Date#('2-jan-11', 'DD-MMM-YY'), 'DD/MM/YY')

View solution in original post

3 Replies
tresesco
MVP
MVP

Date(Date#('2-jan-11', 'DD-MMM-YY'), 'DD/MM/YY')

PrashantSangle

Hi

Try below

If it is valid date then

1)for 02/01/11

Date('2-jan-11','DD/MM/YY')

or

2) for 02/01/2011

Date('2-jan-11', 'DD/MM/YYYY')

If it is not valid date then

1)for 02/01/11

Date(Date#('2-jan-11', 'DD-MMM-YY'), 'DD/MM/YY')

or

2) for 02/01/2011

Date(Date#('2-jan-11', 'DD-MMM-YY'), 'DD/MM/YYYY')

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
hariprasadqv
Creator III
Creator III

Tresesco answer is right.