Function IsTime(a$) As Integer Local d$ Local Integer x,z IsTime=0 If Len(a$)=8 Then d$=Mid$(a$,3,1) If d$=":" Then d$=Mid$(a$,6,1) If d$=":" Then 'here a$=??:??:?? For x=1 To 8 If x=3 or x=6 Then Else z=Asc(Mid$(a$,x,1)) If z<&h30 Or z>&h39 Then Exit Function EndIf Next If Val(Left$(a$,2))<24 Then If Val(Mid$(a$,4,2))<60 Then If Val(Right$(a$,2))<60 Then IsTime=1 EndIf EndIf EndIf EndIf EndIf EndIf End Function Function IsDate(a$) As Integer Local d$ Local Integer x,z IsDate=0 If Len(a$)=10 Then d$=Mid$(a$,3,1) If d$="-" Or d$="/" Then d$=Mid$(a$,6,1) If d$="-" Or d$="/" Then 'here a$=??/??/???? For x=1 To 10 If x=3 Or x=6 Then Else z=Asc(Mid$(a$,x,1)) If z<&h30 Or z>&h39 Then Exit Function EndIf Next x=Val(Left$(a$,2)):z=Val(Mid$(a$,4,2)) If x<1 Then Exit Function Select Case z Case 1,3,5,7,8,10,12 If x>31 Then Exit Function Case 4,6,9,11 If x>30 Then Exit Function Case 2 If x>28+IsLeapYear(Val(Right$(a$,4))) Then Exit Function Case Else Exit Function End Select IsDate=1 EndIf EndIf EndIf End Function