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.

Adding month(s), year(s) to a date

Featured Replies

Hello. What is the way to add month(s) and year(s) to a date.

For example:

- Add 1 month to a date 5/17/2004;

- Add 3 months to a date 5/17/2004;

- Add 6 months to a date 5/17/2004;

- Add 1 year to a date 5/17/2004;

- Add 2 years to a date 5/17/2004;

- Add 3 years to a date 5/17/2004.

I am adding a number of days (5/17/2004 + 180 (6 months)), but the new date is slightly off by several days beacause of the obvious reason.

Thank you in advance for help on this one.

Date( Month( field ) + A, Day( field ), Year( field ) + B )

where A is the number of months to add and B the number of years to add.

Look at the Date() function.

Date ( month, day, year)

-Add 1 month to a "Date_" field.

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

- Add 1 year.

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

It's smart about such things as advancing the year automatically when adding days or months, dealing with leap years, etc..

  • Author

Thank you, guys. Works just like I need!

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.