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.

Change colour with date range

Featured Replies

I would be grateful if someone could help me with this calculation for Conditional Formatting.

I have a birth control portal that gives the next birth date according to the last service.

I would like the birth date to change colour with the proximity of the event.

For days > or < my formula works but not for a range of dates eg 255-269 days

If (Birth control_HEATS::HEAT = "LAST" and GetAsNumber(Get(CurrentDate)) - GetAsNumber(Birth control_HEATS::SERV_date) = 255-269 ; 1 ; 0 )

I have tried using 255...269 and 255..269 but not accepted.

Solved by doughemi

Go to solution
  • Solution

If (Birth control_HEATS::HEAT = "LAST" and (Get(CurrentDate)) - (Birth control_HEATS::SERV_date) ≥ 255 and (Get(CurrentDate)) - (Birth control_HEATS::SERV_date) ≤ 269 ; 1 ; 0 )

 

The GetAsNumber() function is not needed. Internally, dates are already numbers.  Dates are stored as the number of days since Jan 1, 0001.

  • Author

Thank you, that works very well.

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.