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.

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: