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
Abhilash J A
531
2.4k
598.3k
error-String was not recognized as a valid DateTime.
Jan 16 2017 9:42 AM
Hello everyone,
I am getting list of data from datatable with date also.
List<Tble_accessLog> objTble_accessLog =
new
List<Tble_accessLog>();
if
(dt !=
null
&& dt.Rows.Count > 0)
{
objTble_accessLog = dt.AsEnumerable().Select(m =>
new
Tble_accessLog()
{
accessLogId = m.Field<Int64>(
"accessLogId"
),
FullName = m.Field<
string
>(
"FullName"
),
AccessDate = m.Field<
string
>(
"AccessDate"
),
Action = m.Field<
string
>(
"Action"
)
}).ToList();
cnn.Close();
}
return
objTble_accessLog;
After I am trying to bind this data to listview, then occurred date format error. Here
AccessDate
string datatype.
How can I solve this issue? Please help me.
Reply
Answers (
5
)
How to add download button in the webgrid MVC?
Show Checkbox Control In The Row Of Datagridview