Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

VBScript Hour function


May 13, 2021 VBScript


Table of contents


VBScript Hour function

The VBScript Hour function returns hours, please refer to this section for specific usage.


VBScript Hour function Complete VBScript reference manual

The Hour function returns a number of hours representing the number of days between 0 and 23.

Grammar

Hour(time)

Parameters

parameter describe
time Required.Any expression that can represent time.

Instance 1

<script type="text/vbscript">

document.write(Hour("13:45"))

</script>

The above example output results:

13

Try it out . . .

Instance 2

<script type="text/vbscript">

document.write(Hour(Now()))

</script>

The above example output results:

document.write(Hour(Now()))

Try it out . . .

VBScript Hour function Complete VBScript reference manual