YouTip LogoYouTip

Func Timeserial

# VBScript TimeSerial Function * * Complete VBScript Reference Manual](#) * * * The TimeSerial function returns a time for a specific hour, minute, and second. ### Syntax TimeSerial(hour,minute,second) | Parameter | Description | | :--- | :--- | | hour | Required. A number between 0-23, or a numeric expression. | | minute | Required. A number between 0-59, or a numeric expression. | | second | Required. A number between 0-59, or a numeric expression. | ## Example ## Example document.write(TimeSerial(23,2,3) & "
") document.write(TimeSerial(0,9,11) & "
") document.write(TimeSerial(14+2,9-2,1-1)) Output of the above example: 11:02:03 PM 12:09:11 AM 4:07:00 PM [Try it yourself Β»](#) * * Complete VBScript Reference Manual](#)
← Func YearFunc Timer β†’