Brian Dunning's FileMaker Custom Functions

NextDateRange ( StartDate ; TimePeriod ; WholePeriod ; FindPrevious )

Generate Date Ranges for Creating Daily, Weekly, Monthly, or Yearly Reports

  Be the first to rate this function Log in to vote

Kyle Williams   Kyle Williams - Show more from this author
Augusto Digital
https://www.youtube.com/channel/UCpJlB7cmVNMjbjgY96MEsng

Share on Facebook Share on Twitter

  Sample input:
NextDateRange ( "6/29/2019" ; "m" ; 0 ; 1 )
  Sample output:
5/30/2019
6/29/2019

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

When creating reports, date ranges can be a little challenging. Using this custom function, I am able to easily generate the start and end dates for the next line item in the report. This can be set up to find the first and last dates of every month by entering a 1 for "WholePeriod" otherwise it will use the current date. Depending on the direction of the report you can get the range for the next period or the previous period.

 

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 20 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: