Func Hour
# VBScript Hour Function
* * Complete VBScript Reference Manual](#)
* * *
The Hour function returns a number between 0 and 23 representing the hour of the day.
### Syntax
Hour(time)
| Parameter | Description |
| :--- | :--- |
| time | Required. Any expression that can represent a time value. |
## Examples
## Example 1
document.write(Hour("13:45"))
Output of the above example:
13
[Try it yourself Β»](#)
## Example 2
document.write(Hour(Now()))
Output of the above example:
document.write(Hour(Now()))
[Try it yourself Β»](#)
* * Complete VBScript Reference Manual](#)
YouTip