Reputation: 1049
If I have a date such as 2011-05-05T11:35:47.743-04:00
How can I ignore the timezone (-04:00) when I do a DateTime.ParseExact programatically?
Upvotes: 21
Views: 11703
Reputation: 38220
DateTimeOffset dt =DateTimeOffset.Parse("2011-05-05T11:35:47.743-04:00", null);
Upvotes: 25