Connecting Tech Pros Worldwide Help | Site Map

Retrieve time from SERVER

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 03:43 PM
Bill Agee
Guest
 
Posts: n/a
Default Retrieve time from SERVER

In my VBA code, I have the following:

Dim TimeIn as Date


TimeIn = Now()

' I would like to retrieve time from the Server clock rather than the local
PC clock.
' Any suggestions as to how this can be done?????????



  #2  
Old November 12th, 2005, 03:43 PM
Jim Allensworth
Guest
 
Posts: n/a
Default Re: Retrieve time from SERVER

On Thu, 20 Nov 2003 18:21:32 GMT, "Bill Agee" <wscs@mindspring.com>
wrote:
[color=blue]
>In my VBA code, I have the following:
>
>Dim TimeIn as Date
>
>
>TimeIn = Now()
>
>' I would like to retrieve time from the Server clock rather than the local
>PC clock.
>' Any suggestions as to how this can be done?????????
>[/color]
Try this to synch the local pc with another pc:

Shell Environ$("COMSPEC") & " /c Net Time \\yourservername /set /y"

- Jim


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.