-
February 2nd, 2016, 12:41 PM
#1
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
-
February 2nd, 2016, 11:52 PM
#2
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.
-
February 3rd, 2016, 11:23 AM
#3
Re: Help! Vb6 I live in Hawaii, how I can get the current time in NYC from my code?
Originally Posted by DataMiser
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|