Hi,
I want sample code to validate the dates that is to be in the format YYYY-MM-DD(2011-04-21).
I had created two Textboxes to enter date and one Button Control.
The date format to be entered in the Textbox should be exactly like
YYYY-MM-DD(2011-04-21).
If user enters any other format like dd-mm-yyyy or mm-dd-yyyy or dd/mm/yyyy or mm/dd/yyyy and clicks the button it has to show error message in the label like
'Please enter valid date format'.
I'm not getting it how to do.
Can anyone please help me on this.
With Thanks,
Pavan Kumar R