Hi,
I have this function in .NET/
VB that checks for date validation but something is wrong with it since it will pass the date "1/1/20088".
Any ideas how to correct this would be greatly appreciated.
Function CheckDate(ByVal Value As String) As Boolean
Dim ex As Regex = New Regex("([1-9]|1[012])[- /.]([1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d")
Return ex.Match(Value).Success
End Function
I don't see what's the problem.
Thanks,
Richard