Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

Date conversions

Hi all,

i have a date field in the format of DMMYY but i need to format it to DD/MM/YYYY, can anyone help please?

i have attached a sample

1 Solution

Accepted Solutions
sergio0592
Specialist III
Specialist III

Hi,

In your sample you have two formats with DMMYY (10116) and DDMMYY (120116). So for manage these différences you can use :

=if(len(Date_field)=5,Date(Date#(Date_field,'DMMYY'),'DD/MM/YYYY'),Date(Date#(Date_field,'DDMMYY'),'DD/MM/YYYY'))

View solution in original post

2 Replies
sergio0592
Specialist III
Specialist III

Hi,

In your sample you have two formats with DMMYY (10116) and DDMMYY (120116). So for manage these différences you can use :

=if(len(Date_field)=5,Date(Date#(Date_field,'DMMYY'),'DD/MM/YYYY'),Date(Date#(Date_field,'DDMMYY'),'DD/MM/YYYY'))

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

fantastic, thanks very much.