Possible Duplicate:
Parse DateTime with timezone of form PST/CEST/UTC/etc
I have a datetime string = "10/09/2012 5:00 pm PST" How do I convert this into DateTime using DateTime.ParseExact(). I am looking for the literal that will match PST or EST.
Possible Duplicate:
Parse DateTime with timezone of form PST/CEST/UTC/etc
I have a datetime string = "10/09/2012 5:00 pm PST" How do I convert this into DateTime using DateTime.ParseExact(). I am looking for the literal that will match PST or EST.
Replace the PST with the UTC offset, I think it should work:
string value = "10/09/2012 5:00 pm PST";
value = value.Replace ("PST", "−8");
DateTime.ParseExact (value, "M/d/yyyy h:mm tt z", Culture....);