Hi,
I'm taking a date value by using a date picker as a string value
- $("#Date").datepicker({
- changeMonth: true,
- changeYear: true,
- yearRange: "-100:+0",
- dateFormat: "dd/mm/yy"
- });
but i'm getting this (String was not recognized as a valid DateTime.)error while debugging my code at this point
- PropDeedDate = Convert.ToDateTime(Exmod["Date"]);
how can i solve this?
I have tried
- PropDeedDate = DateTime.ParseExact(Exmod["Date"], "dd/MM/yyyy", null);

Rajeev PunhaniPosted Apr 1, 2016, 3:00 AM
Hi Abdul,
What exactly you are getting in Exmod["Date"].
Abdul BasithPosted Apr 1, 2016, 2:57 AM
Rajeev PunhaniPosted Apr 1, 2016, 2:46 AM
Hi Abdul,
Please try this.
If the above solution is helpful then,accept the answer.