Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Date calculation based on variable


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

Recommended Posts

Posted

How do you modify a date fields month, without modifying the day and year. For example, I have two fields. One with a 9/12/2007 in it. The other field is a numeric field. I want whatever number you type in the numeric field to increase or decrease the month of the date in the date field.

Posted

Use the Date() function with the Day(), Month() and Year() functions to disassemble then reassemble the date.

Date( Month( date ) + number ; Day( date ) ; Year( date ) )

But please note that adding two months onto December 31 will not result in February 31; FMP will resolve the extra days into a date that makes sense, like March 3.

This topic is 6281 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.