Skip 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.

Problem with TextColor & Date Calculation

Featured Replies

I have two fields that are date fields. "Review C" & "Review D"

I have an unstored calc that gives todays date: "Today"

I have another field "Next Review" that is an unstored calculation resulting in a date based on the 2 review fields (it figures out which of the first two date fields is next on the calendar).

I have another unstored calculated date field "Next Review colored", that hopefully will displays which dates from the "Next Review" field occur in the next 180 days by coloring them red. Dates after 180 days should be in black.

I tried two ways, neither of which worked:

first:

Case( Next Review - 180 < Today;

TextColor(Next Review; RGB (255; 0; 0));

Next Review)

and also:

Case( GetasNumber(Next Review) - 180 < Getasnumber(Today);

TextColor(Next Review; RGB (255; 0; 0));

Next Review)

Both give me black text results.. none show up in red. Even though based on the math, some should certainly show up in red.

Try using GetAsText(Next Review) in your TextColor calc or make the result text and not date. AFAIK, TextColor does not work with dates.

  • Author

Queue, you rock.. this isn't the first time you've come through for me. Thanks!

Can I paypal you a beer or something ?? B)-)

Possibly, if I could remember where the heck my paypal info is...

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.