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: 
Not applicable

timestamp to time without date

Hi,

I have wrote and expression in my load script that converts the timestamp field [Logdate] into a time field called [Logdate_time].

However when I go my list box and select the newly created [Logdate_time] field, it sorts it by its numerical value.  However the numerical value also includes the date. 

Is there a way that I can sort it by just the time so the time shows from 00:00:00 to 23:59:59?

Regards,

Jon Ditchfield

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Have you used something like

time(frac([Logdate])) as [Logdate_time]

to retrieve the time only?

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Have you used something like

time(frac([Logdate])) as [Logdate_time]

to retrieve the time only?

Not applicable
Author

you can try using

hour([Logdate] )&':'&minute([Logdate] )&':'&second([Logdate] ) as [Logdate_Time]