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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Time out timestamp

I would like to get the time out of my timestamp field.

in the format: HH:MM:SS

I can get the date out of it with the next expression:

=Date(Floor(emptyings_date_time))

Now I need the time part

In addition, I would also want to calculate the differece between each time out of the timestamp.

18 Replies
Not applicable
Author

It's an application with SQL connection, I don't know how to make a small example with sample data

Anonymous
Not applicable
Author

Hi,

It means the column "emptyings_date_time" is not in date format. You have to convert it first in date format before creating time field.

Anonymous
Not applicable
Author

Just export few rows will be enough to understand the problem area.

Not applicable
Author

I exported the Time table to excel and loaded it into a new qvw.

Anonymous
Not applicable
Author

Hi,

No issue in files. Getting below result,

timestamp.PNG.png

PradeepReddy
Specialist II
Specialist II

now it's coming perfectly...

Date(A) - Giving Date

Time(A) - Giving  Time

so there might be some date format issue in your original application

Not applicable
Author

Apparently it does work, but only when I select one time from te timestamp field.

The date however always works.

I added two printscreens from my application.

The first one:

One city is selected and I want the hours to be filled in.

The second view:

I selected also one field from the timestamp table, now it fills in an hour.

The problem is that I want them to show like the dates in the first view.

Anonymous
Not applicable
Author

Hi,

Just to check, are you calculating the time field in front end? Because I could see there are few timestamps in each days so calculating this in frontend won't be giving you expected result. Try using min or max function in your existing logic or calculate this in backend.

Not applicable
Author

I'am calculating this in the front-end.

The timestamp is the exact day and moment when a container was emptied.

I want to show for each day al the hours that a container was emptied.

For the date I just did: date(emptyings_date_time)

Now I have a problem with still linking the times to a certain date.

I also need the first and the last time that a container was emptied each day.

How do I make the link to the day?