Returns the hour of the datetime or time from 0-23.

Declaration

HOUR(datetime) -> hour
HOUR(time) -> hour

Parameters

datetime (type: datetime)
A datetime value to retrieve the hour for.
time (type: time)
A time value to retrieve the hour for.

Return Values

hour (type: number)
The hour from 0-23.

Was this article helpful?

0 out of 0 found this helpful

Add comment

Please sign in to leave a comment.