I'm trying to Deserialize a date correctly from json.
The date format is like this:
"created_at": "2015-11-29T13:15:27+00:00",
I have tried something like:
var result = Newtonsoft.Json.JsonConvert.DeserializeObject<Root>(json, new IsoDateTimeConverter { DateTimeFormat = "yyyy-MM-dd HH:mm:ss" });
(as well as a few other formats) But not got it to work
dotnetfiddle:
https://dotnetfiddle.net/iB0H8I
EDIT
looks like the issue lies with underscores in the field names - how best to handle this given that I don't have control of the json?