DateTime not serialized as ISO8601 if initialized from MySQL datetime

Discussion in 'ASP .Net' started by rlaemmler@gmail.com, Jan 27, 2006.

  1. Guest

    Hi,

    I just migrated my web app to .NET 2.0. Part of the app creates some
    business objects from a MySQL query which is returned by a web service.
    Some of those objects contain DateTime properties. Using .NET 1.1 soap
    serialized a DateTime always in the ISO8601 format. e.g.
    "2006-01-27T07:42:11.3014976-08:00". Now using .NET 2.0 suddenly the
    DateTime objects instanciated from a MySQL query get serialized as
    "2006-01-26T18:40:56". Only DateTime objects instanciated from code
    e.g. DateTime.Now get fully serialized in the ISO8601 format.

    Does anybody know why this happens and how to make sure the Soap
    serializer always uses ISO8601?

    Thanks for your help!
     
    , Jan 27, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Christos TZOTZIOY Georgiou
    Replies:
    3
    Views:
    767
    Christos TZOTZIOY Georgiou
    Sep 13, 2003
  2. Samuel
    Replies:
    2
    Views:
    723
    Samuel
    Sep 9, 2005
  3. Rubic

    datetime iso8601 string input

    Rubic, Feb 23, 2006, in forum: Python
    Replies:
    11
    Views:
    787
    Rubic
    Mar 27, 2006
  4. Chris Morris

    Problem with Time.iso8601

    Chris Morris, Aug 10, 2005, in forum: Ruby
    Replies:
    4
    Views:
    173
    nobuyoshi nakada
    Aug 11, 2005
  5. Jim Davis

    Converting ISO8601 format to Date

    Jim Davis, Aug 29, 2005, in forum: Javascript
    Replies:
    6
    Views:
    220
    Randy Webb
    Sep 1, 2005
Loading...

Share This Page