The HOUR() function returns the hour from "Date and Time".
The "Date and Time" argument must be of type DATE, DATETIME or TIME.
With arguments of type DATE, the function always returns 0.
For arguments of type TIME, the function also returns values greater than 23.
If the "Date and Time" value is invalid or NULL, the HOUR() function returns NULL. |