TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Akshaya arumugam
NA
116
38.8k
String was not recognized as a valid DateTime.why?
Dec 6 2017 11:23 AM
while i am trying to fetch datetime data from db it shows the error String was not recognized as a valid DateTime.
code:
Model:
public DateTime? ReviewedDate{get;set;}
Controller:
DateTime? ReviewedDate = null;
if (testordervm.ReviewedDate != DateTime.MinValue)
{
ReviewedDate = DateTime.Parse(dsobj.Tables[0].Rows[0]["ReviewedDate"].ToString());
}
else
{
ReviewedDate = null;
}
Reply
Answers (
1
)
display local hard disc details
how to load googlemap using latitude longitude in mvc dynamc