Brian Dunning's FileMaker Custom Functions

WeekDaysInRange ( startDate ; endDate ; weekDays )

Returns a list of only those dates in the specified range whose day-of-week is included in the weekDays parameter.

  Average rating: 4.5 (48 votes) Log in to vote

Michael Horak   Michael Horak - Show more from this author
*COMMENT Visual Realisation

Share on Facebook Share on Twitter

  Sample input:
WeekDaysInRange ( Date ( 3 ; 1 ; 2006 ) ; Date ( 4 ; 0 ; 2006 ) ; "1¶7" )
  Sample output:
03/04/2006
03/05/2006
03/11/2006
03/12/2006
03/18/2006
03/19/2006
03/25/2006
03/26/2006
(if current date format is "mm/dd/yyyy")

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

Returns a list of only those dates in the specified range whose day-of-week is included in the weekDays parameter.

The weekDays parameter requires a list of days-of-week (as numbers), separated by carriage returns. For example "1¶7" indicates Sundays and Saturdays.

This formula:
WeekDaysInRange ( Date ( 3 ; 1 ; 2006 ) ; Date ( 4 ; 0 ; 2006 ) ; "1¶7" )
returns all Sundays and Saturdays in the month of March, 2006.

 

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.