Jump to content
Server Maintenance This Week. ×

Adding Years to a Date


This topic is 7004 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 7004 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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