Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Mahamed_Qlik
Specialist
Specialist

Date issue

HI

 

I have column with below date format:

PurchaseDate

1/2/2011 12:00:00 AM

12/3/2012 12:00:00 AM

12/20/2018 12:00:00 AM

4/25/2022  12:00:00 AM

 

I want only date to be extracted in MM/DD/YYYY format as below :

 

PurchaseDate

 

01/02/2011 

12/03/2012 

12/20/2018 

04/25/2022  

 

Regards,

Mahamed

 

 

 

Labels (2)
5 Replies
settu_periasamy
Master III
Master III

Hi,

Try like

Date(Floor(PurchaseDate),'MM/DD/YYYY')

Saurabh_K14999
Contributor III
Contributor III

Hi,
Use the below given format and functions for your requirement.

Date(PurchaseDate,'MM/DD/YYYY') as PurchaseDateNew

Regards,
SK
Mahamed_Qlik
Specialist
Specialist
Author

Hi Surabh

This I have tried but for few dates from the list it is not working.

sunil0099
Contributor
Contributor

Hi

Mahamed

Can you please use the 

Date(Dayname(Fieldname),'MM/DD/YYYY') as PurchasedDate

MarcoWedel

 

MarcoWedel_1-1668276039983.png

 

table1:
LOAD Date(Date#(SubField(PurchaseDate,' ',1),'MM/DD/YYYY'),'MM/DD/YYYY') as PurchaseDate
Inline [
PurchaseDate
1/2/2011 12:00:00 AM
12/3/2012 12:00:00 AM
12/20/2018 12:00:00 AM
4/25/2022  12:00:00 AM
];