Click to See Complete Forum and Search --> : istime
asabi
Oct 22nd, 2000, 10:54 AM
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 ?
Serge
Oct 22nd, 2000, 12:21 PM
Time is a part of Date data type, so you can easilly use IsDate for that matter.
<%
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)
%>
asabi
Oct 22nd, 2000, 12:51 PM
ok, so isdate works both on Dates AND times .. :-)
Cool
Thanks
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.