Jessica C Posted July 8, 2005 Posted July 8, 2005 Does anyone know a way/function (in FM7) to grab the time from the server rather than the user's computer?
LaRetta Posted July 8, 2005 Posted July 8, 2005 You could use: Get ( CurrentHostTimeStamp ) And parse the time out if necessary.
Jessica C Posted July 8, 2005 Author Posted July 8, 2005 Thanks. That works very well. Is there a similar function to get the date from the server?
Jessica C Posted July 8, 2005 Author Posted July 8, 2005 Never mind. I just have to parse it as well.
LaRetta Posted July 8, 2005 Posted July 8, 2005 Yes, rather simple, but in case someone else reads this thread and wants to know - this works for me ... Calculation result should be date: LeftWords( Get ( CurrentHostTimeStamp ) ; 1 )
Ender Posted July 8, 2005 Posted July 8, 2005 How about: GetAsTime ( Get ( CurrentHostTimeStamp ) ) and GetAsDate ( Get ( CurrentHostTimeStamp ) )
Jessica C Posted July 8, 2005 Author Posted July 8, 2005 Actually, you don't even need to parse the timestamp. If you choose calculation result in either "Date' or "Time", you will get date or time only . This worked perfectly for creation date and time of a record. How about modification?
Recommended Posts
This topic is 7078 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now