I want to parse the following date format to a DateTime object in C#.
"19 Aug 2010 17:48:35 GMT+00:00"
How can I accomplish this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’d recommend using
DateTime.ParseExact.As suggested in the comments below,
System.Globalization.CultureInfo.CurrentCultureis a good thing to be aware of and use if you are doing a desktop application.