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.

Date calculation based on variable

Featured Replies

How do you modify a date fields month, without modifying the day and year. For example, I have two fields. One with a 9/12/2007 in it. The other field is a numeric field. I want whatever number you type in the numeric field to increase or decrease the month of the date in the date field.

Use the Date() function with the Day(), Month() and Year() functions to disassemble then reassemble the date.

Date( Month( date ) + number ; Day( date ) ; Year( date ) )

But please note that adding two months onto December 31 will not result in February 31; FMP will resolve the extra days into a date that makes sense, like March 3.

  • Author

Your the man! Thanks, it works perfectly.

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.