is there any function like
isdate (date)
but for time ? something like
istime (time)
I need to validate a time that was entered ... and ideas ?
Printable View
is there any function like
isdate (date)
but for time ? something like
istime (time)
I need to validate a time that was entered ... and ideas ?
Time is a part of Date data type, so you can easilly use IsDate for that matter.
Code:<%
Dim strTime
'This is correct time format
strTime = "12:00PM"
'This format is not correct and will return FALSE if you pass it to IsDate function
'strTime = "1200"
Response.Write "The time format is " & IsDate(strTime)
%>
ok, so isdate works both on Dates AND times .. :-)
Cool
Thanks