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 7852303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:23:21+00:00 2026-06-02T19:23:21+00:00

I have a friend whose having difficulties figuring out how to display a DateTime

  • 0

I have a friend whose having difficulties figuring out how to display a DateTime to users from multiple time zones, but without having the date adjusted for their time zone. For example, let’s say he has a server in Arizona, California and Nevada each with the appropriate time zone of the states. If a user saves a record as say 9:00 AM Arizona time, he wants it to show up as 9:00 AM on the California and Nevada servers when it’s displayed to their users. The database is SQL Server, 2008 I believe.

How can he go about doing that? I’m going to assume that it has something to do with UTC DateTime values? Anyway, I’d appreciate a “complete” example on how he can accomplish this because we seem to be unable to come to an agreement and I can tell he’s getting frustrated…

Thanks in advance!

  • 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-02T19:23:22+00:00Added an answer on June 2, 2026 at 7:23 pm

    It sounds like what they’re really entering is a local time, without really a reference to any particular time zone. This is closest to the behaviour of DateTimeKind.Unspecified (not local, which implies “in the local time zone of the server”, which is a different matter).

    I don’t believe SQL Server will actually perform any time zone conversions when storing or retrieving data, but it’s probably worth your friend explicitly making the kind “unspecified” using DateTime.SpecifyKind after retrieving it. That could save him problems later on.

    He could use UTC everywhere – but it sounds like it’s not really a UTC date/time… it’s a “local time wherever you are” which is entirely different.

    Of course, it would be remiss of me not to mention my own Noda Time project at this point – as what your friend wants is a LocalDateTime – having a sensible set of date/time types makes it much easier to keep all this straight in your code. I would suggest your friend uses Noda Time everywhere other than the database code itself – you can convert a LocalDateTime to a DateTime using ToDateTimeUnspecified and convert the other way with FromDateTime.

    You and your friend may wish to read the core concepts and type choices pages for more food for thought – whether you use Noda Time or not, it will hopefully make you think about the kinds of date/time available more carefully. Then you can read my rant against DateTime if you’re still not convinced 🙂

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

Sidebar

Related Questions

I have a friend who is trying to make the switch to Linux, but
i have heard from a friend of mine that the best algorithm for swapping
Ok, so I'm pretty sure this isn't even possible, but I have a friend
I have a friend whose job is to watch a video and take note
I have a friend and he recently started to learn Cinema 4D. He asked
I have a friend who I am trying to teach how to program. He
I have a friend who is using c# Linq to report on the following
I'm writing a web application (PHP) for my friend and have decided to use
A friend and I have been discussing what's the best way to send large
A friend of mine asked: if I have two dice and I throw both

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.