February 01, 2011, 04:04 PM
brad-s[SOLVED] Time on server using Maintain
How do I get the time on the server (not the client) in a maintain?
I have been Importing the MNTUWS function and using the HHMMSS funtion but that seems to give me the time of the client user. I need the server time.
Is there a way from Maintain?
This message has been edited. Last edited by: Kerry, February 01, 2011, 04:11 PM
Alan BHHMMSS is from the OS of the server. The client user time could only be obtained from javascript.
February 01, 2011, 05:37 PM
brad-sYou are so right. My PC time was in sych with the test server which happens to be in the same time zone.
Thanks for the clarification.
February 02, 2011, 07:09 AM
Maintain WizardBrad
Another thing you can do is EXEC a procedure on the server that types out the system date and bring it back in FOCMSG:
EXEC GETTIME
COMPUTE NOW/A8 = FOCMSG.MSG
GETTIME.FEX
-TYPE &TOD
Mark