I get a string from Excel as so: "\"11/01/2011 16:00\""
What’s the most efficient way to trim this in C# so it can be parsed as a DateTime?
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.
You could probably just trim the string, not sure how consistent that format will be though
That’s assuming the string contains the slashes and those speech marks. If it’s just the speech marks (because visual studio has escaped the string when displaying it) then all you need is