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.
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.
This is the code snippit I ended up with. Thanks for the help.