Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Highlighted
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

1 Solution

Accepted Solutions
MVP
MVP

Re: timestamp to time without date

Have you used something like

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

to retrieve the time only?

View solution in original post

2 Replies
MVP
MVP

Re: timestamp to time without date

Have you used something like

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

to retrieve the time only?

View solution in original post

Not applicable

Re: timestamp to time without date

you can try using

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