Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

DateTimestamp to Hour Only

Hi I have a DateTimeStamp (14/01/17  21:45)

I want to convert it to show Hour only (21) as a decimal.

Can anyone help?

Many thanks

1 Solution

Accepted Solutions
marcus_sommer

You could just use: hour(DateTimeStamp) for it.

- Marcus

View solution in original post

4 Replies
marcus_sommer

You could just use: hour(DateTimeStamp) for it.

- Marcus

Anonymous
Not applicable
Author

How funny !!

You can't imagine how many combinations of rounding combined with calculations.

Muppet moment for me.

Thanks Mark

Anonymous
Not applicable
Author

Marcus (not Mark)

sunny_talwar

You want to see it in decimal?

Ceil(Frac(DateTimeStamp), 1/24)