Brian Dunning's FileMaker Custom Functions

DatePeriod ( Input ; Type )

DatePeriod week, month, quarter, year

  Be the first to rate this function Log in to vote

Benjamin Fehr   Benjamin Fehr - Show more from this author
EfficientBizz GmbH
http://www.efficientbizz.com

Share on Facebook Share on Twitter

  Sample input:
DatePeriod ( "24.9.2019" ; "QQ" )
DatePeriod ( "24.9.2019" ; "MM" )
  Sample output:
01.07.2019
30.09.2019
3
2019

01.09.2019
30.09.2019
9
2019

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

Input = Date
Type = WW (Week), MM (Month), QQ (Quarter), YY (Year)
Resultat = Date Begin of selected period & ¶ &
Date End of selected period & ¶ &
Number of WeekOfYear (WW), MonthOfYear (YY), Quarter (QQ), '-' (YY) & ¶ &
Year
Date are in European format as DD.MM.YYYY
Week starts Monday and ends Sunday

 

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: