Brian Dunning's FileMaker Custom Functions

GetDayOccurrence ( TheDate ; Weekday ; Reps )

Returns a date from a selected date for a specific day of the week that is N away.

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

Ken Newell   Ken Newell

Share on Facebook Share on Twitter

  Sample input:
GetDayOccurrence ("6/1/2004"; "Sat"; "3)
  Sample output:
6/19/2004

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

What is the 3rd Saturday from 6/1/2004? It would be 6/19/2004. This calculation figures those type of questions for you. Handy for identifiying dates that might be bunched together for batch processing. Multiple dates could be pointed to the same end date depending on what day of the week the start date is and what day of the week is selected to match to.

 

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.

Under construction. Email me your wish list for improvements.