How do I ignore time zone differences?

Discussion in 'ASP .Net' started by =?Utf-8?B?SGFycnkgS2Vjaw==?=, Feb 27, 2007.

  1. I call a web service that returns a dataset with date infomation. I then
    store that information in a local database. The web server and the machine I
    am calling it from are on different time zones. All of the times that I save
    are getting changed. I can see a -7 at the end of the date string in the xml
    coming from the web service. I want to get the date as it is stored, I do
    not want it converted, which is what .Net seems to be doing. What is the
    best way for me to get the datetime from the dataset while ignoring time zone
    differences?
     
    =?Utf-8?B?SGFycnkgS2Vjaw==?=, Feb 27, 2007
    #1
    1. Advertising

  2. =?Utf-8?B?SGFycnkgS2Vjaw==?=

    bruce barker Guest

    use gmt time.

    -- bruce (sqlwork.com)

    Harry Keck wrote:
    > I call a web service that returns a dataset with date infomation. I then
    > store that information in a local database. The web server and the machine I
    > am calling it from are on different time zones. All of the times that I save
    > are getting changed. I can see a -7 at the end of the date string in the xml
    > coming from the web service. I want to get the date as it is stored, I do
    > not want it converted, which is what .Net seems to be doing. What is the
    > best way for me to get the datetime from the dataset while ignoring time zone
    > differences?
     
    bruce barker, Feb 27, 2007
    #2
    1. Advertising

  3. Cor Ligthert [MVP], Feb 28, 2007
    #3
    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. Ryu

    Time Zone in Windows Time

    Ryu, Sep 15, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    18,469
    madamut
    Feb 11, 2009
  2. =?Utf-8?B?VmluY2UgVmFyYWxsbw==?=

    prevent a postback when moving web parts from zone to zone.

    =?Utf-8?B?VmluY2UgVmFyYWxsbw==?=, Feb 8, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    598
    =?Utf-8?B?VmluY2UgVmFyYWxsbw==?=
    Feb 8, 2006
  3. davout
    Replies:
    3
    Views:
    582
    Roedy Green
    Oct 16, 2003
  4. J.H.Kim

    time adjustment code according to time zone

    J.H.Kim, Oct 24, 2011, in forum: C Programming
    Replies:
    3
    Views:
    487
    Joel C. Salomon
    Oct 24, 2011
  5. Replies:
    9
    Views:
    330
    Michal Kleczek
    May 27, 2013
Loading...

Share This Page