HOUR DAX Function (Date and Time)
Returns the hour as a number from 0 (12:00 A.M.) to 23 (11:00 P.M.).
Syntax
Parameter | Attributes | Description |
---|---|---|
Datetime |
A datetime value or text in time format, such as 16:48:00 or 4:48:00 PM. |
Return values
An integer number from 0 to 23.
Related functions
Other related functions are:
Last update: Jan 11, 2021 » Contribute » Show contributors
Contributors: Alberto Ferrari, Marco Russo
MSDN documentation: https://docs.microsoft.com/en-us/dax/hour-function-dax