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

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
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)