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!

How to know date() from computer server ?

Status
Not open for further replies.

COBART

MIS
Sep 7, 2000
33
ID
I have application in server computer. This application is execute from work station. When I get date value , i take from the station. But I am not sure the date is valid (True)
and then i want the program get the date value from computer server

How to get date value form computer server ?

Pleash help me ..

Thanks

Rudi
 
Hi Rudi,

The following are a few solutions I've heard recommended to achieve this task:

1. HOWTO: Use NetRemoteTOD to Obtain Date and Time Information from a Server
2. Create a file on the server and then use ADIR() or FTIME() to retrieve the timestamp the server OS places on the file. If using this method, the file must be created with FCREATE(), because STRTOFILE() creates a file with a timestamp from the workstation OS.

Alternatively, you may want to consider storing UTC(GMT) time instead of the time offset by the timezone. See:
HOWTO: Obtain Time Zone Information in Visual FoxPro Jon Hawkins

The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
 
Thank you Jon
your tips is very helpfull

May be you have function for that tips please send me your code !


Thank's

Rudi

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top