Brian Dunning's FileMaker Custom Functions

WeekFiscalToDate ( Yearnr ; WeeknrOfYear ; Firstweekday )

Calculate date from fiscal-weeknumber and year

  Average rating: 4.4 (35 votes) Log in to vote

Menno van Beek   Menno van Beek - Show more from this author
Van Beek Zakelijke Software
https://www.vbzs.nl

Share on Facebook Share on Twitter

  Sample input:
WeekFiscalToDate ( 2013 ; 5 ; 2 )
WeekFiscalToDate ( 2015 ; 5 ; 1 )
WeekFiscalToDate ( 2015 ; 5 ; 2 )
  Sample output:
1/28/2013
2/1/2015
1/26/2015

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

This function works more or less as the inverse function of WeekOfYearFiscal(), which is built into Filemaker. Only instead of calculating the weeknumber, it calculates the date for the given day of the given fiscal weeknr. If the Firstweekday is set to 2 it'll calculate a date from the ISO-weeknumber.

 

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: