Help with a datetime problem

Hi I have a .txt file i want to read out and load a wpf datagrid with the content. Everything working fine so far, except for the dates i am given.

When i open the .txt file with the editor a date reads like this: 2015-10-31T14:19:27+00:00 When i read the file with StreamReader (Encoding.UTF-7 –> i need to do that because of chars like ä,ü…) i get a string reading like this: 2015-10-31T14:19:27:00

I have problems to Convert this last string to Datetime and can't find a format matching this on the msdn site. Can someone give me a hint?

by wasntmyfault via /r/csharp

Leave a Reply