Skip to content

Hour

Description

Hour returns the hour from a datetime value.

Syntax

Hour(datetime)

Parameters

Parameter Required Type Description
datetime Yes Datetime, field, or expression Datetime value to evaluate.

Notes

Use this function in calculated fields, metric expressions, or query expressions where the function category is supported.

Example

Hour(OrderTime)

The expression returns the calculated result according to the current query context.