Obviously the reader doesn’t like this format incoming from the response XML.
Wondering if I can reformat this. Trying to convert to DateTime using the following code with my XmlReader:
reader.ReadContentAsDateTime();
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.
Xml readers generally expect dates/times in a very specific format; you can use this yourself using
XmlConvert:If you are using something else, you’ll have to read it as a string and use
DateTime.TryParseExact(or similar) to specify the actual format string:If you are using
XmlSerializer, you could use a shim property to do the conversion – let me know if this is what you are doing…