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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get time/date from server (NT)

Status
Not open for further replies.

ALSayegh

Programmer
Mar 27, 2001
25
KW
Hi
How can I get time/date from server?

Server time/date --> Client
 
If u want u could ASP coding and a little Remote Object Scripting... I used and it works just great... ________
George, M
email : shaddow11_ro@yahoo.com
 
ALSayegh -

There are a couple of ways:
1) Make a SQL call like: SELECT GETDATE() if the server has a database server on it.

2) Use Active Directory with Windows 2000 Server and Professional to syncronize the clocks on the two computers.

3) Download a time server client from somewhere like the US Naval Observatory (
4) Write a 1-byte file to a shared folder and then read that directory to see what time it was created.


And for those who like a challenge:

5) Write a DCOM component on the server that clients can call.

6) Write a COM+/MTS component on the server that clients can call.

7) Write a custom Winsock program to return the correct time in a format the client understands.

8) Write an ISAPI filter for IIS that will return the current time

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top