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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
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

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer
MVP
MVP

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

- Marcus

View solution in original post

4 Replies
marcus_sommer
MVP
MVP

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
MVP
MVP

You want to see it in decimal?

Ceil(Frac(DateTimeStamp), 1/24)