18

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?

Oskar Kjellin
  • 21,280
  • 10
  • 54
  • 93
D_D
  • 1,019
  • 4
  • 15
  • 25

1 Answers1

23
DateTimeOffset dt =DateTimeOffset.Parse("2011-05-05T11:35:47.743-04:00", null);
V4Vendetta
  • 37,194
  • 9
  • 78
  • 82