merkaba22 Posted March 9, 2010 Posted March 9, 2010 I am aware that FileMaker can modify dates, for example, fora date a year later: (date + 365). However, in the case of a month later: (date + 30) does not return the same day a month later. Is there another way to calculate this requirement?
Raybaudi Posted March 9, 2010 Posted March 9, 2010 If the starting DATE is: 01/30/2010 which must be the ending one ?
merkaba22 Posted March 9, 2010 Author Posted March 9, 2010 Thanks Daniele: Good point, but if there is a calc where the starting DATE is: 01/27/2010 the result required would be: 02/27/2010
Lee Smith Posted March 9, 2010 Posted March 9, 2010 Do you mean this? Date ( Month ( AnyDate ) + 1 ; Day ( AnyDate ) ; Year ( AnyDate ) ) Lee
LaRetta Posted March 9, 2010 Posted March 9, 2010 (edited) However, in the case of a month later: (date + 30) does not return the same day a month later. Is there another way to calculate this requirement? You are missing the point by Daniele (although his example didn't show it) and Michael (Comment): If the start is 1/31/2010, one month later would be 2/31/2010 which FM would translate to 3/3/2010 (or 3/2 if a leap year). You must define the rules on how the calculation should handle the difference when the number of days in the result month is shorter than the number of days in the beginning date. Do you want the last day of the SAME month or do you want it to run into the next month by (up to) 3 days? Edited March 9, 2010 by Guest
merkaba22 Posted March 10, 2010 Author Posted March 10, 2010 Thanks Loretta -- but I did get it, that; why I changed the day ... Nonetheless, you did provide me he answer to my next question and I thank you for that!
merkaba22 Posted March 10, 2010 Author Posted March 10, 2010 The requirements for the calc is that if the start date is 1/31/2010,one month later should be 2/28/2010, or 2/29/2010 if it's a leap year.
comment Posted March 10, 2010 Posted March 10, 2010 See: http://fmforums.com/forum/showpost.php?post/217855/
Vaughan Posted March 10, 2010 Posted March 10, 2010 Change the requirement to specify an explicit number of days. There is a reason why some warranties are specified as 30 days or 60 days. It avoids all confusion and ambiguity.
Recommended Posts
This topic is 5431 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