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 Current Date minus 3 days

Featured Replies

I have created a Script that allows me to see who's payment is due today,

Perform Find[] Specify, // next payment due date.

How can I subtract a specific number of days from the current date?

date - 3

date fields are numbers counting days.

-jens

You need to create a script to do this.

Enter Find Mode [ ]

Set Field [ YourTO"::YourDateField; Get ( CurrentDate ) -3 ]

Perform Find [ ]

HTH

Lee

  • Author

Thank you, that was easy for me to set up.

beats the heck out of scrolling through 500 records.

  • Author

Thank you very mucho

  • Author

OK, this works well Enter Find Mode [ ]

Set Field [ YourTO"::YourDateField; Get ( CurrentDate ) -3 ]

Perform Find [ ]

But I need to be able to also view the current date, one day back and 2 days back and 3days back. Just by using the scroll wheel on my mouse to look at all these days.

Can this be done within this same script?

Set the field to:

Get ( CurrentDate ) - 3 & ".." & Get ( CurrentDate )

Try this and see it works for you.

Enter Find Mode [ ]

Set Field [ YourTO::YourDate; Get ( CurrentDate ) -3 & "..." & Get ( CurrentDate ) -1 ]

Perform Find [ ]

HTH

Lee

  • Author

That did the trick, thank you.

  • Author

Thanks, it did not need the -1 on the end took that off and it worked perfect. to cool.

Thanks Again

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.