web service response passes back an xml file, one element is type Date, its format has timezone info, e.g.
12-30-2010T10:00:00+1:00
my class has a field (DateTime) to receive the value, however, it simply change date to local time.
12-30-2010T10:00:00+1:00
will be converted to
12-30-2010T02:00:00 (My local time is CST).
So the original timezone info is lost. what I want is just the time ignoring timezone info, simply
12-30-2010T10:00:00
or for some way I can extract timezone info in the response, so I can adjust converted time back to original time before conversion.
Anyone know how to do this in C#?
thanks
XmlSerializer?