LastSaturdaysInRangeSQL ( startDate ; endDate )
Returns a comma-separated list of SQL-formatted dates representing the last Saturday of each month between the start and end dates.
Be the first to rate this function Log in to vote
Jonni™ - Show more from this author |
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
Generates a list of dates in SQL 'YYYY-MM-DD' format for the last Saturday of each month within a given date range. This function uses recursion to iterate through months, making it compatible with FileMaker versions prior to 18 which do not support the While function.
The resulting list is formatted for direct use in SQL IN (...) clauses.
Comments
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.