XML Custom serialization

theballin7

New Member
I get this xml string from a web service that I can't control:\[code\]<foo> <BIRTHTIME>02.06.2012-01:34.41 1338593681</BIRTHTIME></foo>\[/code\]Currently, I deserialize the above xml string into this class:\[code\]Public Class AppData Public BIRTHTIME As StringEnd class\[/code\]As you can see AppData.BIRTHTIME is a string data type, but it needs to be a date data type. What I would like to accomplish is deserialize the xml string into this class: \[code\]Public Class AppData Public BIRTHTIME As DateEnd class\[/code\]The problem is that when I deserialize the xml into the above class, I get this error "Input string was not in a correct format." . Can somebody provide an elegant solution to solve this problem? Thx
 
Back
Top