Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
mahitham
Creator II
Creator II

How to convert date into DD/MM/YYYY Format

Hi Experts,

Can any one please help me to convert the User_StartDate  field into DD/MM/YYYY Format.

start date.png

I have tried the below script but last 4 dates which are highlighted in red color was not converted into DD/MM/YYYY format. Please help me on this.

start date script.png

Thanks in advance

 

Labels (1)
  • dates

3 Replies
Anil_Babu_Samineni

Bump

https://community.qlik.com/t5/New-to-Qlik-Sense/Date-converstion-help-to-DD-MM-YYYY-Format/m-p/15108...
Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Zhandos_Shotan
Partner - Creator II
Partner - Creator II

Hi!

Try to use something like:

if(Len(Trim(User_StartDate  ))=8,  [...alt...Date#(StartDate,'DD/MM/YY')...] ,

    if(Len(Trim(User_StartDate  ))=10, [...alt...Date#(StartDate,'DD/MM/YYYY')...] )

)

jonathandienst
Partner - Champion III
Partner - Champion III

Your expression looks correct* so perhaps the problem dates contain hidden characters or white space. Perhaps you could upload a sample text file containing the problem dates (and 'good' dates).

*Your expression does not require the outer Date(Num ....)). This is redundant and will do nothing.
Logic will get you from a to b. Imagination will take you everywhere. - A Einstein