Help! Vb6 I live in Hawaii, how I can get the current time in NYC from my code?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Help! Vb6 I live in Hawaii, how I can get the current time in NYC from my code?

  1. #1
    Join Date
    Feb 2016
    Posts
    2

    Question Help! Vb6 I live in Hawaii, how I can get the current time in NYC from my code?

    I am using vb6 and win7. I live in Hawaii. Does anyone know how I can get the current time in NYC from my code?

    Jay

  2. #2
    DataMiser is online now Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,122

    Re: Help! Vb6 I live in Hawaii, how I can get the current time in NYC from my code?

    You would just need to add the correct number of hours to your current system time. I'm not sure what the difference is to Hawaii, 6hrs maybe? Should be easy to find out with a quick internet search.

    Use the DateAdd() function to add the proper number of hours to the current time
    Always use [code][/code] tags when posting code.

  3. #3
    Join Date
    Feb 2016
    Posts
    2

    Wink Re: Help! Vb6 I live in Hawaii, how I can get the current time in NYC from my code?

    Quote Originally Posted by DataMiser View Post
    You would just need to add the correct number of hours to your current system time. I'm not sure what the difference is to Hawaii, 6hrs maybe? Should be easy to find out with a quick internet search.

    Use the DateAdd() function to add the proper number of hours to the current time
    Thanks! Just didn't recall the DateAdd() function.

    Jay

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


HTML5 Development Center