Hi,
I am developing an application which will display the local time as well as the US time.
The problem is, I need to consider the daylight savings while calculating the US time. How this can be achieved?
please help.
thanks
Printable View
Hi,
I am developing an application which will display the local time as well as the US time.
The problem is, I need to consider the daylight savings while calculating the US time. How this can be achieved?
please help.
thanks
With standard .NET 2.0 it can't really. They've added the TimeZoneInfo class to .NET 3.5 which will allow you to do what you want but .NET 2.0 provides no specific API.
Having said that, that TimeZoneInfo class is just a managed wrapper around the time zone information that Windows stores in (I believe) the Registry. You can use that information yourself. In fact, someone has posted their own TimeZoneInfo class in the VB.NET CodeBank forum that does it for you.
thanks for that. I will look at it.