Brian Dunning's FileMaker Custom Functions

LastMonday ( themonth ; theyear )

Returns the date for the last Monday in a given month

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

Theo Ros   Theo Ros
*
http://notapplicable.com

Share on Facebook Share on Twitter

  Sample input:
LastMonday ( 5 ; 2005 )
  Sample output:
May 30, 2005

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

Returns the date for the last Monday in month
'themonth' and year 'theyear'

In: themonth - integer value 1 to 12 for the month
theyear - integer value for the year
if empty, the function uses the current date

Return type: Date

 

Comments

Jake DeGroot   Jake DeGroot
Jun 8, 2012
This function doesn't work if you select the month december (12) for any year, is there any way to get around the error?
 

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.