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.

get(currentdate) refresh

Featured Replies

i need a calc of some sort that defines a feild to current date (i have that part) but updates at midnight...or will i be forced to have a refresh script step

Hi VICH,

You can use Task Scheduler (in Control Panel) to run opening an FM file which has an opening script which can set your date and then close itself. You can schedule it to run at midnight. VBScript could also be used (I would bet) although I haven't used it in this way before. :wink2:

LaRetta

  • Author

hmm well let me put it like this, i have 12 date feilds the first has a calc value of get(currentdate) feild 2 is the date in feild 1 + 1

and then from then on its the previous date + 1, in order to show 12 consecutive days, at midnight the first feild has to update, and then the other 11 do as well, so what would be the best option

Can I ask if someone works at midnight ?

  • Author

yes you can and no they don't

or will i be forced to have a refresh script step

So, based on your previous replay, you don't need a script to refresh the current date...

You only need to make UNSTORED the calc of ToDay = Get(CurrentDate)

i have 12 date feilds the first has a calc value of get(currentdate) feild 2 is the date in feild 1 + 1 and then from then on its the previous date + 1, in order to show 12 consecutive days

Also I think that [color:red]here you can use those ill-famed repeating fields !

Make a 12 rep repeating field with this calc:

GetAsDate ( Extend ( ToDay ) + Get ( CalculationRepetitionNumber ) -1 )

where ToDay = Get(CurrentDate) UNSTORED !

  • Author

i'll have to try that thanks buddy

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.