Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to grab time from the server?

Featured Replies

Does anyone know a way/function (in FM7) to grab the time from the server rather than the user's computer?

You could use:

Get ( CurrentHostTimeStamp )

And parse the time out if necessary. smile.gif

  • Author

Thanks. That works very well.

Is there a similar function to get the date from the server?

  • Author

Never mind. I just have to parse it as well.

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 )

wink.gif

How about:

GetAsTime ( Get ( CurrentHostTimeStamp ) )

and

GetAsDate ( Get ( CurrentHostTimeStamp ) )

  • Author

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?

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.