从字符串转换至日期,
报错
Dim str As String = "20170506" Dim d As Date = str.Insert(4,"-").Insert(7,"-") |
e.datarow("生产日期") = cdate(d)
.NET Framework 版本:2.0.50727.8766
Foxtable 版本:2018.3.9.1
错误所在事件:表,原色墨信息,DataColChanged
详细错误信息:
Exception has been thrown by the target of an invocation.
从字符串“2017-05-06'”到类型“Date”的转换无效。