我有以下格式的字符串:
29-Feb-17 03.36.15.1902 PM我尝试用下面的代码将它转换成一个DateTime对象:
DateTime.ParseExact(request.DispatchTime, "dd-MMM-yy hh.mm.ss.ffff tt", CultureInfo.InvariantCulture);但是得到了错误:
The DateTime represented by the string is not supported in calendar System.Globalization.GregorianCalendar.发布于 2017-03-01 21:56:07
29-Feb-17不是现有的datetime。因此,相应的库不能解析它
https://stackoverflow.com/questions/42533620
复制相似问题