Hello,
Can anyone tell me how do we validate date entered in a text box?
I went to check whether the entered date in the text box is of correct date format.
Please help me out!!

what data format??specify more the problem friend :)

the data type is of date type,this i will enter in a text box.I just want to validate that the entered text in the text box is of correct format(date type).

>I just want to validate that the entered text in the text box is of correct format(date type).
Try to parse it.

If IsDate(textDate.Text) = True Then
            MsgBox("correct date")
        Else
            MsgBox("input correct date")
        End If
commented: usefull +1
commented: great +1

Hey thanks Narue n Jx_Man, both the codes are actually working... :)

you're welcome friend :)
Happy coding...

Hello,
Can anyone tell me how do employee join after 6 months to add a 18 leaves
Please help me out!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.