Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
jim_chan
Specialist
Specialist

how to change a date with timestamp to a date format like DD/MM/YYYY?

Hi there, 

I have a date data like below screenshot. how to change a date with timestamp to a date format like DD/MM/YYYY?

 

Please help!

jim_chan_0-1668597129422.png

Thank you.

Jim.

 

1 Solution

Accepted Solutions
jim_chan
Specialist
Specialist
Author

Many thanks Brun! this is correct script!

jim_chan_0-1668653409250.png

 

thank you very much!

View solution in original post

8 Replies
Mohan_hitman
Contributor III
Contributor III

DATE(ordersubmittime,''DD/MM/YYYY'') AS ordersubmittime,
BrunPierre
Master
Master

Date(Date#([Order submit time],'DD MMM YYYY hh:mm'),'DD/MM/YYYY')

Mohan_hitman
Contributor III
Contributor III

if u use  this exp the time stamp will disappear right?

 

 

BrunPierre
Master
Master

@Mohan_hitman  Please say that again.

MarcoWedel

In order to get real date values, i.e. only one single integer field value per date, you have to trim the fractional time part of your timestamps or to just interpret the date part of your timestamp strings.

Some possible ways to do this:

MarcoWedel_0-1668635011273.png

table1:
LOAD *,
     DayName([Order submitted time]) as [Order submitted date3];
LOAD Timestamp#([Order submitted time],'DD MMM YYYY hh:mm') as [Order submitted time],
     Date(Floor(Timestamp#([Order submitted time],'DD MMM YYYY hh:mm')),'DD/MM/YYYY') as [Order submitted date],
     Date(Date#(Left([Order submitted time],11),'DD MMM YYYY'),'DD/MM/YYYY') as [Order submitted date2]
Inline [
Order submitted time
01 Sep 2022 12:34
01 Sep 2022 23:45
01 Oct 2022 11:11
01 Oct 2022 22:22
01 Nov 2022 16:36
01 Nov 2022 17:36
01 Dec 2022 01:23
01 Dec 2022 02:34
];

 

jim_chan
Specialist
Specialist
Author

Many thanks Brun! this is correct script!

jim_chan_0-1668653409250.png

 

thank you very much!

jim_chan
Specialist
Specialist
Author

Thanks Macro it helps alot! 

Mohan_hitman
Contributor III
Contributor III

if u use  this exp the time stamp will disappear right?