Brian Dunning's FileMaker Custom Functions

weeklyRange ( curDate )

Return a readable weekly date range for a given date. Ideal for calendar header.

  Average rating: 5.0 (1 vote) Log in to vote

Bruno Pelletier   Bruno Pelletier - Show more from this author
Geniewave
https://geniewave.ca/

Share on Facebook Share on Twitter

  Sample input:
weeklyRange ( Get ( CurrentDate ) )
weeklyRange ( weeklyRange ( dateField )
  Sample output:
Feb 28 - Mar 6, 2021
Feb 14 - 20, 2021

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

This function will return the beginning date of the week starting on Sunday and the end date being the Saturday in a readable view for a calendar or a weekly view.

 

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: