Skip 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.

Add a year to creation Date field

Featured Replies

  • Newbies

Hi,

I have a creation date field and I would like to add a year to it so if it was created on 01/01/2019 it actually says 01/01/2020.

I'm relatively new to FM so I am a bit puzzled as to what to do 

Thanks in advance for any help :)

Date ( Month ( table::myDate ) ; Day (table::myDate ) ; Year ( table::myDate ) + 1  ) 

  • Author
  • Newbies

thanks A lot for the reply :) Is there away to make this work without me manual putting a date?

Currently that only seems to work if I select the date and then it adds a year to it. What I would like  to do is auto input the current date on a new record creation and then add the year to it if that makes sense?

Thanks alot!

  • Author
  • Newbies

Hi :)

well "Date ( Month ( table::myDate ) ; Day (table::myDate ) ; Year ( table::myDate ) + 1  ) " only seems to work on my field  if I manually enter date.  I have to physically type 26/06/2019 for it to the display 26/06/2020.

What I would like to do is when i create a new record it automatically puts the date the current date into the field and then add one year so I don't have to type it in.

Does that make more sense? :)

Make the field auto-enter a calculated value =

Let (
today = Get ( CurrentDate )
;
Date ( Month ( today ) ; Day ( today ) ; Year ( today ) + 1 ) 
)

 

 

Edited by comment

Hi Gibson, keep in mind that, if the current date is a leap year then the resultant date will be one day later.  Example: current date is 2/29/2016, FM will automatically adjust it to 3/1/2017.  If you instead want a business rule that it should adjust backwards to the last day of February, you can do that too, similar to:

Let ( [
today = Get ( CurrentDate ) ;
d = Date ( Month ( today ) ; Day ( today ) ; Year ( today ) + 1 )
] ;
d - ( Month ( today )  ≠ Month ( d ) )
)

There are, of course, other calculations to achieve same result.  

Edited by LaRetta

 have a creation date field and I would like to add a year to 

Just to be clear, keep the creation date and add an additional date field "MyFutureDate" , auto-enter calc, to comment's suggested calc. 

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.