devxlogo

Write an IsTime Function

Write an IsTime Function

Use this function to determine whether a string represents a valid time:

 Public Function IsTime(sTimeArg As String) As Boolean	IsTime = IsDate(Format(Date, "short date") & _		" " & sTimeArg)End Function

devx-admin

Share the Post: