我有一个excel表,其中采用这种格式的日期列,"23/8/11 01:33:01:PM" 并使用datarow将其插入sql 2008但是收到错误
"23/8/11 01:33:01:PM"
字符串未被识别为有效的日期时间.
任何人都可以帮忙吗?
DateTime newdate = Convert.ToDateTime(row[8].ToString());
.net c# string datetime
.net ×1
c# ×1
datetime ×1
string ×1