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.

Days between two dates

Featured Replies

Hi

I would like to be able to calculate the number of days that have passed between a new record and the previous one only and have that figure displayed in the latest record.

any advice as to the neatest way to do this?

Thanks as always.

Here is one way - Calculation (result is number);)

Case ( theDate ; theDate - GetNthRecord ( theDate ; Get ( RecordNumber ) - 1 ) )

This does not require an additional table occurrence (simply to look backwards one record) so I like it.

UPDATE: I was a bit surprised to see that this calculation still produced a result, ie, -731143, when there was not a value in theDate EVEN IF 'Do not evaluate if all referenced fields are empty' is unchecked. So it requires a test for non-empty date first.

Edited by Guest
Added update

  • Author

Hi LaRetta

Thank you for your reply. I have been an idiot and forgot to mention something...on reflection VERY important.

I only want to calculate the days between subsequently created records for records that have the same CoID.

Sorry for being an idiot. All help appreciated.

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.