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
  • 20,322
  • 10
  • 52
  • 93
D_D
  • 1,019
  • 3
  • 15
  • 25

1 Answers1

22
DateTimeOffset dt =DateTimeOffset.Parse("2011-05-05T11:35:47.743-04:00", null);
V4Vendetta
  • 35,718
  • 7
  • 75
  • 81