I am trying to convert strings to dates in the format below. I would like to keep the timezone format such that when i retrieve it from the DB it will be parsed to the correct time.
Another example of the string i receive is "19 March 2014 10:32:04 GMT";
`string date = "19 March 2014 10:32:04 CEST";
Console.WriteLine(date);
DateTimeOffset result = DateTime.ParseExact(date, "dd MMMM yyyy HH:mm:ss Z",
CultureInfo.InvariantCulture);' `
This is for a .net API
Thanks
Dan