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.

Featured Replies

This is a very simple problem... I just do not know how to do it. smile.gif

How do you add years (in a number format) to a date (Date Format)

Example:

21 (Years) + 2-14-05 = 2-14-26

Help

Joseph

Assuming you have two fields already (i.e. a date field and a number field), substitute your field names for "AnyDate" and "Number_of_Years"

Your Calculation Field would look like this:

c_FutureAnyDate (calc, Date Result) =

Date(Month(AnyDate), Day(AnyDate),Year( AnyDate)+Number of Years)

HTH

Lee

  • Author

I am not sure I understand this equation....

Can you help me alittle more?

AnyDate is your date field or hard-coded date. Applying it to your example would look like

Date( 2; 14; 2005 + 21 )

or

Date( Month(Date( 2; 14; 2005 )); Day((Date( 2; 14; 2005)); Year(Date( 2; 14; 2005)) + 21 )

or

Date( Month(AnyDate); Day(AnyDate); Year(AnyDate) + YearsToAdd )

as in Lee's calculation.

  • Author

Cool thanks

That helped me... thank you to both of you.

Joseph

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.