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.

How do you do date calculations is FMP 7?

Featured Replies

Hello-

I have 2 fields: "Age" and "DOB"

Can you please suggest a way to enter a person's age (via calculation,script)into the "Age" field once their Date of Birth is entered in "DOB"?

Also, is there a way to calculate what the date would be 30 days after a given date?

Thank you...

To calculate age, search the forums for "birthday" it has been discussed recently.

To add onto dates, use the Date (month, day, year) function.

For instance, to add 30 days to a field called "Joined" you'd use:

Date ( Month(Joined), Day(Joined)+30, Year(Joined) )

To add one month:

Date ( Month(Joined)+1, Day(Joined), Year(Joined) )

To add one year:

Date ( Month(Joined), Day(Joined), Year(Joined)+1 )

Just be very clear what you want to do when manipulating dates: there is a difference between adding 30 days and adding one month. Similarly, 90 days is not 3 months and 365 days is not one year.

Just to be complete: if you're simply adding a number of days to a date you can use the simplified expression

Date + <number of days>

But like I said, 30 days is not the same as one month.

  • Author

Thank you Vaughan, I really appreciate your advice.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.