I’m writing a application on managed c++ so my problem is I can’t seem to find fast and easy way to parse this string to DateTime:
2011-11-21 18:24:58
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.
Have you tried
If Parse is unable to parse your string into a date time, it will throw an FormatException, which you can catch and examine the error to see why it failed.