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

  • Home
  • SEARCH
  • 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 81417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:27:24+00:00 2026-05-10T21:27:24+00:00

I am having trouble understanding how the System Registry can help me convert a

  • 0

I am having trouble understanding how the System Registry can help me convert a DateTime object into the a corresponding TimeZone. I have an example that I’ve been trying to reverse engineer but I just can’t follow the one critical step in which the UTCtime is offset depending on Daylight Savings Time.

I am using .NET 3.5 (thank god) but It’s still baffling me.

Thanks

EDIT: Additional Information: This question was for use in a WPF application environment. The code snippet I left below took the answer example a step further to get exactly what I was looking for.

  • 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. 2026-05-10T21:27:25+00:00Added an answer on May 10, 2026 at 9:27 pm

    Here is a code snippet in C# that I’m using in my WPF application. This will give you the current time (adjusted for Daylight Savings Time) for the time zone id you provide.

    // _timeZoneId is the String value found in the System Registry. // You can look up the list of TimeZones on your system using this: // ReadOnlyCollection<TimeZoneInfo> current = TimeZoneInfo.GetSystemTimeZones(); // As long as your _timeZoneId string is in the registry  // the _now DateTime object will contain // the current time (adjusted for Daylight Savings Time) for that Time Zone. string _timeZoneId = 'Pacific Standard Time'; DateTime startTime = DateTime.UtcNow; TimeZoneInfo tst = TimeZoneInfo.FindSystemTimeZoneById(_timeZoneId); _now = TimeZoneInfo.ConvertTime(startTime, TimeZoneInfo.Utc, tst); 

    This is the code snippit I ended up with. Thanks for the help.

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

Sidebar

Related Questions

I am having some trouble understanding how to make System Sequence Diagrams, as I
This is my first foray into java, and I am having trouble understanding how
I'm having trouble understanding the second half of connecting a new node into a
I'm having some trouble understanding why some figures can't be represented with floating point
I'm having some trouble understanding scala's type bounds system. What I'm trying to do
I'm having trouble understanding why a WSDL would be so beneficial, when the truth
I'm having trouble understanding when to use properties in Objective C 2.0. It seems
In chapter 2, the section on bitwise operators (section 2.9), I'm having trouble understanding
I'm new to Ruby, so I'm having some trouble understanding this weird exception problem
I'm having a little bit of trouble understanding what the problem is here. I

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.