Hello everyone,
I am getting list of data from datatable with date also.
- List
objTble_accessLog = new List(); - if (dt != null && dt.Rows.Count > 0)
- {
- objTble_accessLog = dt.AsEnumerable().Select(m => new Tble_accessLog()
- {
- accessLogId = m.Field
("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.


Nitin SontakkeRank #264 · 9.6K reputationPosted Jan 16, 2017, 5:07 AM EST
Abhilash J ARank #1,243 · 1.4K reputationPosted Jan 16, 2017, 5:16 AM EST
Chetan RanpariyaRank #1,852 · 801 reputationPosted Jan 16, 2017, 5:44 AM EST
Abhilash J ARank #1,243 · 1.4K reputationPosted Jan 16, 2017, 6:34 AM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Jan 16, 2017, 5:16 PM EST