Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Switch services using the Version drop-down list. Learn more about navigation.
Applies to: ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Returns the integer number representing the hour number of the given date.
Syntax
hourofday(date)
Learn more about syntax conventions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| date | datetime |
✔️ | The date for which to return the hour number. |
Returns
An integer between 0-23 representing the hour number of the day for date.
Example
print hour=hourofday(datetime(2015-12-14 18:54))
| hour |
|---|
| 18 |