Connecting Tech Pros Worldwide Help | Site Map

Retrieve time from SERVER

  #1  
Old November 12th, 2005, 04:43 PM
Bill Agee
Guest
 
Posts: n/a
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, 04:43 PM
Jim Allensworth
Guest
 
Posts: n/a

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


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting System Time From SQL Server Neil answers 13 November 30th, 2007 09:05 PM
Getting System Time From SQL Server Neil answers 9 November 30th, 2007 09:05 PM
Capturing XML pages from Server Steve Wolfie answers 4 November 19th, 2005 05:18 PM
Getting time from an HttpResponse Nuno Magalhaes answers 1 November 17th, 2005 10:46 AM