Heathbo Posted September 11, 2007 Posted September 11, 2007 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.
Vaughan Posted September 11, 2007 Posted September 11, 2007 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.
Heathbo Posted September 11, 2007 Author Posted September 11, 2007 Your the man! Thanks, it works perfectly.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now