How to parse a string with GMT into datetime in c#
I have this inputDateString: 15/03/2023 15:13:37 GMT and I want to convert it to datetime. I am doing this: DateTime outputDate = DateTime.ParseExact(inputDateString, "MM/dd/yyyy:hhmmss \"GMT\"", CultureInfo.InvariantCulture); I get this error: c# String ’10/05/2023 18:19:27 GMT’ was not recognized as a valid DateTime. How can I convert this date string to a datetime? >Solution : your… Read More How to parse a string with GMT into datetime in c#