Brian Dunning's FileMaker Custom Functions

NextFirstFriday ( theDate )

Finds the next first Friday

  Average rating: 4.8 (23 votes) Log in to vote

Sean   Sean - Show more from this author
Private

Share on Facebook Share on Twitter

  Sample input:
NextFirstFriday ( 09/26/2013 )
  Sample output:
10/04/2013

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

Enter a date and the function finds the following month's first Friday.

 

Comments

unix   unix, Japan
Sep 27, 2013
Let ( [
Next1stDate = Date ( Month ( theDate ) + 1 ; 1 ; Year ( theDate ) ) ;
Dow = DayOfWeek ( Next1stDate )
];
Next1stDate + 6 - Mod ( Dow ; 7 )
)
 

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: