R
rlaemmler
Hi,
"2006-01-27T07:42:11.3014976-08:00" is an example how a DateTime gets
serialized from a ASP.NET web service. This represents the ISO8601
format. For some reason when I read such a value from a MySQL database,
initialize a DateTime object which gets returned by a web service it
ends up coming back as "2006-01-27T07:42:11". This only happens when
using .NET framework 2.0. In the framework 1.1 it always serialized the
full DateTime including the timezone offset as shown on top.
Does anybody know how to make sure it always serializes it to
"2006-01-27T07:42:11.3014976-08:00"?
Thanks.
"2006-01-27T07:42:11.3014976-08:00" is an example how a DateTime gets
serialized from a ASP.NET web service. This represents the ISO8601
format. For some reason when I read such a value from a MySQL database,
initialize a DateTime object which gets returned by a web service it
ends up coming back as "2006-01-27T07:42:11". This only happens when
using .NET framework 2.0. In the framework 1.1 it always serialized the
full DateTime including the timezone offset as shown on top.
Does anybody know how to make sure it always serializes it to
"2006-01-27T07:42:11.3014976-08:00"?
Thanks.