The Namspace used in the demonstration is System.Globalization
Step 1: main.aspx
Private Sub btnValidate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnValidate.Click
Try
Dim myDateTimeUS As System.DateTime
Dim format As New System.Globalization.CultureInfo(“en-US”, True)
myDateTimeUS = System.DateTime.Parse(txtDate.Text, format)
Response.Write(“Valid Date”)
Catch ex As Exception
Response.Write(ex.Message)
Response.Write(“Not Valid Date”)
End Try