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.

months elapsed between two dates

Featured Replies

I have a column of different dates. Each date is the date on a record of when a subscription to a magazine lapsed.

I have a global column showing today's date.

I need a formula that will tell me the number of months that have elapsed between the two dates.

I am working in Filemaker Pro 5

Can anyone help?

Try:


12 * Year ( gToday ) + Month ( gToday ) - 12 * Year ( StartDate ) - Month ( StartDate ) - ( gToday < Date ( Month ( gToday ), Day ( StartDate ) , Year ( gToday ) ) ) 

BTW, you don't need the global field for this - you can use Status(CurrentDate) directly (just make sure the calculation is unstored).

I have a column of different dates. Each date is the date on a record of when a subscription to a magazine lapsed.

These date fields (holding the lapsed subscription date) should really be records in a related table. It will be much easier to work with because the same calculation provided by Comment can then work for ALL the fields instead of requiring a separate calculation for each date field.

And if the subscriptions are records, you can easily track, count, and report on the information. :wink2:

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.