给一个数据库中类型为"datetime"的列赋值为
"DateTime.MinValue"。。。。。。

 

"DateTime.MinValue"=={0001/1/1 0:00:00}
But"datetime"取值范围{1753-01-01到9999-12-31 00:00:0023:59:59.997 3.33毫秒}

这就比较尴尬了...

 

只要把那个字段的值改为在datetime范围内的就可以了...

我是这么改的

DateTime.ParseExact("190001010000", "yyyyMMddmmss", System.Globalization.CultureInfo.InvariantCulture)

 

相关文章:

  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
  • 2021-05-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案