@theMayer: I tried the solution you proposed, i.e. βTo get around this, perhaps the easiest way is to set the value type in your DataContract type toβ string. βThen, if you need to work with .NET datetime, you will need to make DateTime.Parse on your string value. This will fix your the deserialization problem.Probably, for the original class that was serialized, a string value was used first, as there is no necessary formatting for dates.
Please note that when you do DateTime.Parse, if the time zone information is present, it will convert it to the local time of your computer (this is stupid, I know). Just FYI. "
But I got this error: String was not recognized as a valid DateTime. , Date and time format: / Date (1544007801877-0600) /, and then I do Datetime.Parse on it.
source share