Results 1 to 3 of 3

Thread: [2005] Find US Time

  1. #1

    Thread Starter
    Hyperactive Member csKanna's Avatar
    Join Date
    Dec 2005
    Location
    Tech-Tips-Now.com
    Posts
    339

    [2005] Find US Time

    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
    Kanna

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Find US Time

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member csKanna's Avatar
    Join Date
    Dec 2005
    Location
    Tech-Tips-Now.com
    Posts
    339

    Re: [2005] Find US Time

    thanks for that. I will look at it.
    Kanna

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width