我有这个字符串:
content.cn_dic_status.AddRange( new Status { id = int.Parse(testdet[0]) ,name_status = testdet[1], ppn_dt = DateTime.ParseExact(testdet[2], "yyyy-MM-dd", null) });
我尝试添加数据:
("4, Ansverd found, 2019-11-27" )
但是会收到异常:
+ $exception {"String ' 2019-11-27' was not recognized as a valid DateTime."} System.FormatException
我该如何解决?