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 14:04:25
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00275100
Message ID:
00275543
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.


Just One note, I am using this for a VFP 5.0a project and the second parameter is not supported until 6.0. I got around this using the FTIME() function.

Thanks again for the help Bob.
Mark Johns
Previous
Reply
Map
View

Click here to load this message in the networking platform