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);
But the error is still there