首页 > 代码库 > 该字符串未被识别为有效的 DateTime 或 Adding a value to a 'datetime' column caused an overflow.

该字符串未被识别为有效的 DateTime 或 Adding a value to a 'datetime' column caused an overflow.

DateTime.ParseExact("2017/4/27 18:02:56", "yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture)

 

该字符串未被识别为有效的 DateTime 或 Adding a value to a 'datetime' column caused an overflow.