Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

net time

Status
Not open for further replies.

ETID

Programmer
Jul 6, 2001
1,867
US
Any body know how to pass the net time (network date and time info) to a string variable in vba?
 
erm.....
myNetworkDateAndTime = Now()

should do it shouldn't it......
Computer clock set from network clock
Now() = computer clock time
HTH
Geoff
 
Thanks for your reply...

The trouble is,... the local machines are not turned off on a scheduled interval, so the clocks are not syncronized to the network every day, but I have a process that is run locally every day that is dependent on having the exact or net time, So I need to capture the exact time according to the net server.

I.E. "net time" from command prompt.




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top