Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieving the current date/time from a server
Message
From
12/10/1999 10:59:18
 
 
To
11/10/1999 16:36:20
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00275100
Message ID:
00275442
Views:
23
>>Is there a way to get the current date/time from the server where a VFP application is running from? The VFP date(), time(), datetime() functions all return the date/time from the workstation. I need to be able to get the time from the server where the program is running from. I also need to be able to do it for both NT and Novell servers.
>>
>>Any suggestions would be appreciated.
>
>Here is a program I wrote for this occasion:
>
>

>#DEFINE _SERVER "svrsbdell1"
>#DEFINE _PATH "storage"
.
.
.
>THis actually returns a DateTime... also, the user must have full access to the path you specify for it to work... It uses an 8.3 file name so it will [should] work fine on a Novel Server.
>
>Bob

Bob you are the man. I am using this now for date more than time but its still a great contribution to the UT! Thanks.
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform