Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Purushothaman
Partner - Creator III
Partner - Creator III

Date Format DD/MM/YYYY

HI Experts,

Attached is the DOB column in different formats, I would like to transform to single format DD/MM/YYYY.

I tried using ALT, DATE# and DATE functions, I am unable to bring all the DOB rows into DD/MM/YYYY.

Anyone, Please help!!

Thank you,

Regards,

Puru

2 Solutions

Accepted Solutions
Aditya_Chitale
Specialist
Specialist

@Purushothaman ,

for formatting using script use:

if(istext(DOB),Date(Date#(DOB,'DD/MM/YYYY'),'DD/MM/YYYY'),Date(num#(DOB),'DD/MM/YYYY'))

for formatting in frontend chart use:

if(istext(DOB),Date(Date#(DOB,'DD/MM/YYYY'),'DD/MM/YYYY'),Date(Date#(num#(DOB)),'DD/MM/YYYY'))

 

Regards,

Aditya

View solution in original post

BrunPierre
Partner - Master
Partner - Master

Hi, since you have a mixed date format, try this.

Date(
Alt(
Date#(DOB,'DD/MM/YYYY'),
Date#(DOB,'DD-MMM-YY'),
Date(Num#(DOB))),'DD/MM/YYYY') as DOB

View solution in original post

3 Replies
vikasmahajan

[Sheet1]:
LOAD
Date([DOB],'DD/MM/YYYY' ) AS [DOB]
FROM [lib://DataFiles/QLIKcOMM.xlsx]
(ooxml, embedded labels, table is Sheet1);

vikasmahajan_0-1679552566027.png

this should give you result.

 

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Aditya_Chitale
Specialist
Specialist

@Purushothaman ,

for formatting using script use:

if(istext(DOB),Date(Date#(DOB,'DD/MM/YYYY'),'DD/MM/YYYY'),Date(num#(DOB),'DD/MM/YYYY'))

for formatting in frontend chart use:

if(istext(DOB),Date(Date#(DOB,'DD/MM/YYYY'),'DD/MM/YYYY'),Date(Date#(num#(DOB)),'DD/MM/YYYY'))

 

Regards,

Aditya

BrunPierre
Partner - Master
Partner - Master

Hi, since you have a mixed date format, try this.

Date(
Alt(
Date#(DOB,'DD/MM/YYYY'),
Date#(DOB,'DD-MMM-YY'),
Date(Num#(DOB))),'DD/MM/YYYY') as DOB