Brian Dunning's FileMaker Custom Functions

WeekStart ( weekOfYear ; year )

Returns the date of Sunday in the specified week.

  Average rating: 4.7 (28 votes) Log in to vote

Michael Horak   Michael Horak - Show more from this author
*COMMENT Visual Realisation

Share on Facebook Share on Twitter

  Sample input:
WeekStart ( 54 ; 2000 )

WeekStart ( 1 ; 2001 )
  Sample output:
Dec 31, 2000

Dec 31, 2000

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

Returns the starting date of the given week number in the given year. Week numbers are assumed to follow the same rules as specified for FileMaker's WeekOfYear() function.

This function is NOT recursive.

 

Comments

Karen   Karen, ny
May 13, 2012
Elegant, and easily modified for fiscal!
 
John Buckingham   John Buckingham, microGuidance
Aug 31, 2012
Nice one, Michael. Thank you...

I changed the '-6' to '-5' so as to show the Monday of the week. I know this is not strictly correct, but it's what my client wanted!!!
 

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 15 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:

Under construction. Email me your wish list for improvements.