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 PunhaniRank #551 · 4.4K reputationPosted Mar 31, 2016, 10:46 PM EDT
Hi Abdul,
Please try this.
If the above solution is helpful then,accept the answer.
Abdul Basith22 reputationPosted Mar 31, 2016, 10:57 PM EDT
Rajeev PunhaniRank #551 · 4.4K reputationPosted Mar 31, 2016, 11:00 PM EDT
Hi Abdul,
What exactly you are getting in Exmod["Date"].