Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8849385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:38:15+00:00 2026-06-14T12:38:15+00:00

I am accessing a webservice in .net which returns a dataset. Looking at the

  • 0

I am accessing a webservice in .net which returns a dataset.

Looking at the xml from the webservice it shows a date as follows

2012-11-16T00:00:00-05:00

My computers timezone is GMT+1, you can see the date from the XML has the -5

I am using a webreference in VS2005 which gives me a dataset.

When I look at the date from the dataset it says it is 05:00

I was expecting 00:00 value and am unsure the proper way to convert.

I could simply subtract 5 hours, but not sure that will hold when daylight savings changes again.

Ive done a lot of googling and found similar problems when using datareader and how to fix it, but noone talking about what to do when it gets serialized into an entire dataset.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T12:38:17+00:00Added an answer on June 14, 2026 at 12:38 pm

    The XML is providing the local value, which is 2012-11-16T05:00:00Z. It sounds like the deserialization is then converting that into a DateTime in UTC… check the Kind property of the DateTime you’ve got… if it’s Utc then it all makes sense, and you’re getting the correct instant in time represented in the XML.

    It’s not clear what you’re expecting, or what’s posting the data, or what value you really need from it. If you can change the deserialization code to use DateTimeOffset instead of DateTime, that would preserve both pieces of information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had a webservice which i was directly accessing from my webform. I used
I am accessing .NET webservice methods from my Android application using Java SOAP jar.
I have a asp.net website and I am accessing that web service from my
I am accessing a REST webservice from a VB app. I create a HttpWebResponse
am accessing a class from my webservice as [WebMethod(EnableSession = true)] public string fetchAbsentees(string
I am accessing an existing WCF web service (which returns a PDF as a
I have an iPhone app accessing an ASP.NET Webservice for data. Since I'm building
I have an ASP.NET webservice method that returns a generics list (List'<'Construct>) serialized as
What are the best practices for accessing a WCF web service from an ASP.NET
I have a user interface in .net which needs to receive data from a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.