Brian Dunning's FileMaker Custom Functions

MoNm ( MoNo ; Format )

Enhancement of native MonthName function

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

Matt Wills   Matt Wills - Show more from this author
Virtual Vermont
http://www.virtualvermont.com/FMP/

Share on Facebook Share on Twitter

  Sample input:
MoNm ( 1 , 1 )

MoNm ( 1 , 3 )
  Sample output:
January

Jan

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

FM's native MonthName function requires you to enter a complete date in quotes (or a date field) to return the name of the month. Any dummy day and year will do, but you still have to enter whole thing, and you get the full month name.

This CF allows you to enter just the number of the month (1-12), and also provides the added flexibility of returning either the full name (default) or the three-letter abbreviation.

If Format = 3 the abbreviation is returned. Any other value returns the full name.

 

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: