Brian Dunning's FileMaker Custom Functions

weekdays ( startdate ; enddate )

Calculates weekdays between dates

  Average rating: 4.1 (35 votes) Log in to vote

Barbecue   Barbecue
Le Kastelo de Barbakoa
http://www.milleniumhandandshrimp.com

Share on Facebook Share on Twitter

  Sample input:
weekdays( 12/01/2004; 12/25/2004)
  Sample output:
18

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

A function to compute the number of weekdays (Monday throught Friday) between two arbitrary dates.
Uses recursion, so it's not exactly super efficient, but it does work.

 

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: