Funzione TimeValue VBScript


❮ Riferimento completo di VBScript

La funzione TimeValue restituisce una variante del sottotipo Date che contiene l'ora.

Sintassi

TimeValue(time)

Parameter Description
time Required. A time from 0:00:00 (12:00:00 A.M.) to 23:59:59 (11:59:59 P.M.) or any expression that represents a time in that range

Esempio

Esempio

<%

response.write(TimeValue("5:55:59 PM") & "<br />")
response.write(TimeValue(#5:55:59 PM#) & "<br />")
response.write(TimeValue("15:34"))

%>

L'output del codice sopra sarà:

5:55:59 PM
5:55:59 PM
3:34:00 PM

❮ Riferimento completo di VBScript