Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
String was not recognized as a valid DateTime.
Abdul Basith
Apr 1 2016 2:30 AM
381
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
How to create a save or refresh button in c#?
Highcharts label problem with int value