Brian Dunning's FileMaker Custom Functions

AbbrMonthName ( monthNumber )

Return Abbreviated Month Name from Month Number

  Average rating: 4.2 (29 votes) Log in to vote

Mike Beargie   Mike Beargie - Show more from this author
MainSpring, Inc.

Share on Facebook Share on Twitter

  Sample input:
AbbrMonthName( 9 )
  Sample output:

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

Allows you to customize an abbreviated month list for date display calculations. IE you can add periods on the end, return all caps, etc...



Tux   Tux, Montreal
Oct 17, 2013
Here, let me shorten that for you:

m = monthNumber
Case(m = 9 ; "Sept" ; Left(MonthName(Date(m ; 1 ; 2000)) ; 3))
Mike Beargie   Mike Beargie, MainSpring, Inc.
Oct 17, 2013
Yeah, I know how to take the left three and account for September. That would be an improvement on this one:

The point of this is NOT to add a "t" to "Sep". It's to use the list for any month name customization you want. IE 1 = Jan, Jan., 1/, 1-, Jy, Jy., First, 1st, 1st., Winter (for a seasonal display calc), etc...

Some developers require customizations for ALL values. An easy case statement like this is a good way to put that together.

But yes, if you just want to add a "t" on "Sep", your calculation is more efficient.
Bruce Robertson   Bruce Robertson
Oct 17, 2013
Choose( monthNumber ; ""; "Jan"; "Feb"; "Mar"; "Apr"; "May"; "Jun"; "Jul"; "Aug"; "Sept"; "Oct"; "Nov"; "Dec" )

Log in to post comments.


Note: these functions are not guaranteed or supported by 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 16 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: