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.

Need simple timestamp-related calc, please

Featured Replies

I've tried a number of permutations to get this to work but I just can't seem to nail this one.

I have a TimeStamp field ("TimeStamp") and a Get(CurrentDate) date field ("CurrentDate"). I need a Case statement calc to test if 90 days has elapsed since the TimeStamp date; if so, a blurb of text should appear; if not, nothing.

What's that syntax for this calc?

Thanks!

Rich

  • Author

Ah! Got it.

Case ( Get ( CurrentDate ) - GetAsDate ( Timestamp ) > 90; "good cop"; "bad cop--no donut")

Your original post said you wanted nothing displayed if not 'good cop.' If this is true then you can forget about creating a calculation at all (which is important in keeping down the number of field clutter).

You would use conditional format. Create the words "good cop" in black. Conditional format calculation would be: Get ( CurrentDate ) - GetAsDate ( timestamp ) 90

... and change the text color to be same as your background color. It will then disappear completely if "bad cop - no donut" :wink2:

  • Author

Thanks, LaRetta: I was working from a test file and goofing off a little more than I should; the "bad cop--no donut" text was supposed to be double-quoted to leave the field empty...though the conditional formatting idea is a good one to keep in mind, too!

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.