Brian Dunning's FileMaker Custom Functions

AdvanceDateByMonths

Advances a date by set number of months, even where the day of the month doesn't exist in the resultant month

  Be the first to rate this function Log in to vote

Kris Weyling   Kris Weyling - Show more from this author
Digital Fusion Ltd.
http://teamdf.com

Share on Facebook Share on Twitter

  Sample input:
AdvanceDateByMonths ( Get ( CurrentDate ) ; 2 )
  Sample output:
28/2/2019

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Takes a date and advances it by X number of months

Fixes cases where the resultant month doesn't have the same amount of days

Eg, adding 3 months to 31/12/2018 would otherwise result in 2/3/2019, when it should be 28/12/2019

The function enforces that

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth:

Under construction. Email me your wish list for improvements.