Reputation: 718
I have string of the following format:
29-Feb-17 03.36.15.1902 PM
and I am trying to convert it into a DateTime object with the following code:
DateTime.ParseExact(request.DispatchTime, "dd-MMM-yy hh.mm.ss.ffff tt", CultureInfo.InvariantCulture);
But getting the error:
The DateTime represented by the string is not supported in calendar System.Globalization.GregorianCalendar.
Upvotes: 0
Views: 111
Reputation: 14389
29-Feb-17
Is not an existing datetime
. Thus the corresponding library cant resolve it
Upvotes: 6