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)
| Parameters | Description |
|---|---|
| time | Required. Any expression representing a time. |
Example
Example 1
The example above produces the following output:
13
Try it »
Example 2
The example above produces the following output:
document.write(Hour(Now()))
Try it »
Complete VBScript Reference Manual