Getting the web server current time.

  • Thread starter Thread starter muscha
  • Start date Start date
M

muscha

Hi all,

Is there a way for me to get a webserver current date and time? Probably
using the webrequest object.

For example:

WebRequest request = WebRequest.Create(address);
WebResponse response = request.GetResponse();

response ???

Thanks heaps,

/m
 
You could create a web service that return it or you could activate the
Time server in windows, for this you must install the Networking
Services/Simple TCP/IP Services package in the windows installation
options.

Hmm what happen if I don't control the webserver? This is for a general
webserver which may be using Apache/others.

thanks

/m
 
Back
Top