2
Hi Raja,
You have to parse the date value before validation. Use the below code:
- DateTime date = DateTime.ParseExact(this.myTextBox.Text, "dd/MM/yyyy", null);
Here you can send the text value entered by the user or a value picked up from your datePicker control. The next key thing is to format your Date to be parsed and if time doesn't bother you, pass the "null" value.
Hope this helps.
Regards,
Amresh S.
1
What is the value you are getting in tbxFromDate.Value?
0
Manas Mohapatra
Amresh S
Thank You so much!