Brian Dunning's FileMaker Custom Functions

MonthYearList ( startmonth ; startyear ; numbermonth ; short )

List of months with their respective years

  Average rating: 5.0 (5 votes) Log in to vote

Gennaro BONATESTA   Gennaro BONATESTA - Show more from this author
Tenuta TRESCA
https://www.tresca.it

Share on Facebook Share on Twitter

  Sample input:
MonthYearList ( 9 ; 2017 ; 10 ; 0 )

MonthYearList ( 6 ; 2018 ; 8 ; 1 )
  Sample output:
"september2017¶october2017¶november2017¶december2017¶january2018¶february2018¶march2018¶april2018¶may2018¶june2018"

"jun2018¶jul2018¶aug2018¶sep2018¶oct2018¶nov2018¶dec2018¶jan2019"

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

MonthYearList ( startmonth ; startyear ; numbermonth ; short )
- returns a return-delimited list of month and years starting from the specified month number
Parameters
- startmonth: number of starting month e.g. 1 (January)
- startyear: number of starting year
- numbermonth: number of months required
- short: Boolean operator to return short month names (1/true or 0/false)
Examples
- MonthYearList ( 9 ; 2017 ; 10 ; 0 ) returns "september2017¶october2017¶november2017¶december2017¶january2018¶february2018¶march2018¶april2018¶may2018¶june2018"
- MonthYearList ( 6 ; 2018 ; 8 ; 1 ) returns "jun2018¶jul2018¶aug2018¶sep2018¶oct2018¶nov2018¶dec2018¶jan2019"
Credits
- Author: Gennaro Bonatesta, www.tresca.it, Octomber 2017
- Thanks to: David Head for his Custom Function MonthNameList ( start; number; short ) http://www.briandunning.com/cf/1143

 

Comments

Jeff Elston   Jeff Elston, Forge
Jun 20, 2019
I tried using this script but I'm not getting the next year if it rolls passed Dec31st.

I got this:
June2018
July2018
August2018
September2018
October2018
November2018
December2018
January2018
February2018
March2018
April2018
May2018
 
Jeff Elston   Jeff Elston, Forge
Jun 20, 2019
I tried using this script but I'm not getting the next year if it rolls passed Dec31st.

I got this:
June2018
July2018
August2018
September2018
October2018
November2018
December2018
January2018
February2018
March2018
April2018
May2018
 

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: