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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
vikasshana
Creator III
Creator III

Need help in formating date column

 

Hi,

 

I've a date column and a Platform column in my app as below

 

Load_DatePlatform
23/11/2017  00:00:00A
26/11/2017  01:27:55B
26/11/2017  01:27:56B
26/11/2017  01:27:57B
26/11/2017  01:06:07C
28/11/2017  06:39:24D

I'm using the below formulae to convert into date format in Load script and I'm getting the below output

Date(Load_Date,'DD/MM/YYYY') as Load_Date .

 

Load_DatePlatform
23/11/2017 A
26/11/2017 B
26/11/2017 B
26/11/2017 B
26/11/2017 C
28/11/2017 D

But I would like to see something like below.

 

Load_DatePlatform
23/11/2017  A
26/11/2017  B
26/11/2017  C
28/11/2017  D

Regards,

Vikas

Labels (1)
1 Solution

Accepted Solutions
kaushiknsolanki
MVP
MVP

Try this.

Date(Floor(Load_Date),'DD/MM/YYYY') as Load_Date


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

3 Replies
kaushiknsolanki
MVP
MVP

Try this.

Date(Floor(Load_Date),'DD/MM/YYYY') as Load_Date


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
settu_periasamy
Master III
Master III

Try this..

LOAD date(floor(date#(Load_Date, 'DD/MM/YYYY hh:mm:ss'))) as Load_Date,
Platform
FROM
[https://community.qlik.com/thread/283231]
(
html, codepage is 1252, embedded labels, table is @1);

vikasshana
Creator III
Creator III
Author

thanks for this, it is working fine now..!!!!