YouTip LogoYouTip

Func Timevalue

# VBScript TimeValue Function * * Complete VBScript Reference Manual](#) * * * The TimeValue function returns a Variant of subtype Date containing a time. ### Syntax TimeValue(time) | Parameter | Description | | :--- | :--- | | time | Required. A time between 0:00:00 (12:00:00 A.M.) and 23:59:59 (11:59:59 P.M.), or any expression representing a time within this range. | ## Example ## Example document.write(TimeValue("5:55:59 PM") & "
") document.write(TimeValue(#5:55:59 PM#) & "
") document.write(TimeValue("15:34")) The output of the above example: 5:55:59 PM 5:55:59 PM 3:34:00 PM [Try it Β»](#) * * Complete VBScript Reference Manual](#)
← Func WeekdayVb Func Dateadd β†’