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: 
Dolly123
Creator II
Creator II

date formats

Qlikhub_0-1682404795057.png

 

we have to change date formats to dd/mm/yyyy formats

1 Solution

Accepted Solutions
_Iswarya_
Contributor III
Contributor III

You can try like this:

 

=Date(Date#(KeepChar(SubField(Order_Date,' ',1),'1234567890')&' '&SubField(Order_Date,' ',2)&' '&SubField(Order_Date,' ',3),'D MMM YYYY'),'DD/MM/YYYY')

View solution in original post

2 Replies
MayilVahanan

Hi

This is one of the methods to achieve your expectation.

MapValue:
Mapping
Load * Inline
[
Value, ReplaceValue
st,
nd,
rd,
th,
];
Load *, Date(Date#(MapSubString('MapValue',Date), 'D MMM YYYY'), 'DD/MM/YYYY') as Date1 Inline
[
Date
1st Apr 2023
2nd Apr 2023
3rd Apr 2023
4th Apr 2023
];

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

You can try like this:

 

=Date(Date#(KeepChar(SubField(Order_Date,' ',1),'1234567890')&' '&SubField(Order_Date,' ',2)&' '&SubField(Order_Date,' ',3),'D MMM YYYY'),'DD/MM/YYYY')