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 field--adding years to date

Featured Replies

  • Newbies

I have created several Date calculation fields that take the value of another date field and add between 1 and 10 years to that date. To add 10 years I used the calculation:

datecalc = datefield + Date (01,01,11)

This works pretty well, but randomly the day of the month is off in datecalc by one day.

Is there a better way to add simply the years? It is critical that the dates be exact, except for the added years, for scripting purposes. Any suggestions would be greatly appreciated.

Thanks, AlanM

datecalc = Date(Month(datefield), Day(datefield), Year(datefield) + NumOfYears)

-bd

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.