Hi All,
Hopefully someone can provide some help with this!
I am calling a web API (not a asmx web services - I'm ussing the HttpRequest classes) and the response returns some XML.
The API belongs to a 3rd party in Holland.
I've created classes that 'map' to the XML using an XSD file provided by the thrid party. My problem is when dates are returned to me.
Looking at the XML returned a time looks like this: 00:00:00+02:00
When I deserialize this (using standard .Net deserialization), the time in my class looks like:
23:00:00
If I examine the DateTime in the debug inspector, the DateTimeKind is 'Local' - I think I want UTC, but not sure if I'm correct here or how to achieve it!
Any help / pointers / samples would be greatly appreciated!
I'm using .Net 2.0 - if anyone needs the code, please let me know.
Thanks,
Graeme
"Just beacuse you're paranoid, don't mean they're not after you
Hopefully someone can provide some help with this!
I am calling a web API (not a asmx web services - I'm ussing the HttpRequest classes) and the response returns some XML.
The API belongs to a 3rd party in Holland.
I've created classes that 'map' to the XML using an XSD file provided by the thrid party. My problem is when dates are returned to me.
Looking at the XML returned a time looks like this: 00:00:00+02:00
When I deserialize this (using standard .Net deserialization), the time in my class looks like:
23:00:00
If I examine the DateTime in the debug inspector, the DateTimeKind is 'Local' - I think I want UTC, but not sure if I'm correct here or how to achieve it!
Any help / pointers / samples would be greatly appreciated!
I'm using .Net 2.0 - if anyone needs the code, please let me know.
Thanks,
Graeme
"Just beacuse you're paranoid, don't mean they're not after you