Home / Search/ Language Reference/ Functions/ Scalar Functions/ DateTime Functions/hourofday

hourofday

The hourofday function returns the integer number representing the hour number of the given date.

Syntax

    hourofday( Datetime )

Arguments

Returns

The hour number of the day (0–23).

Example

hourofday(datetime(2022-10-14 18:54)) returns as 18.