Getting DATE/TIME from Server on LAN

HAAAK

Member
Joined
Sep 19, 2006
Messages
7
Programming Experience
1-3
Hi,
I would like to develope a weindows form has a clock getting the dat and time from a server on LAN nit from client machine.

I have read some tricks like usign getdate() but this is used if SQL Server exist.

Thanks,
 
I have read some articles regarding this method, but I get confused. Some mentioned it will synchronize the user's clock from the server.

Can you poste recommended articles or source code?

Thanks,
 
Network time protocol is merely a method for getting the current time from a remote server. It does nothing to the local clock. I dont ahve any articles, sorry.. but it wouldnt be difficult to implement some form of remote time get.. Use remoting, a webservice, raw sockets.. I presume you dont need millisecond accuracy?
 
You could use a web service to get information if this works in your scenario. We use this as a method for our subscription services so that the date is always referenced off of our server and not the users local machine.
 
WMI query Win32_UTCTime could be sufficient.
 
Back
Top