Description
The Hour() function returns a number between 0 and 23 that represents the hour of the day.
This function has the form:
Hour(time)
Parameter | Description |
---|---|
time | (required) Any expression that can represent a time |
Examples
The following examples show the basic use of this function:
Example 1
Msgbox(Hour("13:45"))
This produces the following result:
13
Example 2
Msgbox(Hour(Now()))
Miscellaneous Information
Supported in Version: | 1.0 |
---|