/ Published in: Visual Basic
This method checks whether a given string is a valid date (current regional settings are used)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Private Function isDate(dateString As String) As Boolean On Error GoTo NoDate Dim test As Date test = DateValue(dateString) isDate = True Exit Function NoDate: isDate = False End Function