Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

VBScript TimeSerial Function

VBScript TimeSerial Function


VBScript reference manual Complete VBScript Reference Manual


The TimeSerial function returns the time for a specific hour, minute, and second.

Syntax

TimeSerial(hour,minute,second)

Parameters Description
hour Required. A number between 0 and 23, or a numeric expression.
minute Required. A number between 0 and 59, or a numeric expression.
second Required. A number between 0 and 59, or a numeric expression.

Example

Example

The example above produces the following output:

11:02:03 PM

12:09:11 AM

4:07:00 PM

Try it »


VBScript reference manual Complete VBScript Reference Manual