I have been searching to convert string to datetime with ignoring the offset.
I have a string with local date time as 2017-02-13T12:11:03.303 +01:00
i want to ignore the offset part and string should be converted to 2017-02-13 12:11:03.303
as datetime format. I searched google but could not find one.
Referred How to convert string to DateTime in C#?
Not a duplicate of DateTime.ParseExact, Ignore the timezone as while searching didn't know its realted to DateTimeOffset
.Searched using layman terms and no proper result found.