Software Venture Consulting

FileMaker Pro downloads & Resources
FileMaker Custom Functions
FileMaker Web Viewer Examples
FileMaker Pro & Lasso Consulting
Training
FileMaker Books
FileMaker Articles
FileMaker Error Reference

Free Web Tools
Free FileMaker Tools

Personal Pages
Videos
Adventures
Links

Shopping Cart
Shopping Cart

Search:

Free Newsletter
Signup


Contact


Privacy Policy



FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.

 

 FileMaker Pro Custom Functions

List  |  Show Random  |  Upload  |  Add This to Your Site

month_AN_ML ( theMonthOrDate ; language ; abbrevOption ; monthNumOption ; style )

Rate this function:  

RatingRatingRatingRatingRating
  Average rating: 4.1  (29 votes)
  Discuss this Custom Function

François Goulet, Lizzy Logik Inc.
Not applicable

Get a month name or abbreviation in any language supported by the CF, and/or the month number, starting from a date or month number or starting from a month name or abbreviation provided in any supported language. Supported languages are: English, French, Spanish, Italian and Portuguese.

Sample Input:
month_AL_ML ( " septiembre " ; "" ; "" ; "" ; "" ) >
month_AL_ML ( " abr. " ; "" ; "" ; "2" ; "" ) >
month_AL_ML ( " 2014-12-25 " ; "En" ; "" ; "" ; "" ) >
month_AL_ML ( " 2014-08-25 " ; "Fr" ; "" ; "2" ; "" ) >
month_AL_ML ( " 2014-04-25 " ; "Pt" ; "" ; "1" ; "" ) >
month_AL_ML ( " 1 " ; "En" ; "" ; "" ; "" ) >
month_AL_ML ( " 01 " ; "Fr" ; 1 ; "" ; "" ) >
month_AL_ML ( " January " ; "Es" ; "" ; 1 ; "" ) >
month_AL_ML ( " January " ; "It" ; 1 ; 1 ; "" ) >
month_AL_ML ( " January " ; "Es" ; 1 ; 2 ; "" ) >
month_AL_ML ( " ene " ; "En" ; 1 ; 2 ; 1 ) >
month_AL_ML ( " 12. Dezembro " ; "It" ; "" ; " 2 " ; "1" ) >
month_AL_ML ( " 07. lug " ; "Fr" ; " 1 " ; 2 ; 2 ) >
Sample Output:
9
04
December
08. Août
4. abr
January
jan
1. enero
1. gen
01. ene
01. Jan
12. Dicembre
07. JUL


 Then copy & paste into FileMaker Advanced's Edit Custom Function window.

Click here to copy To Clip Manager if you have myFMbutler's Clip Manager installed

Description:

month_AN_ML ( theMonthOrDate ; language ; abbrevOption ; monthNumOption ; style ) v.2 - Modified the CF to enable it to return only the month number when the language field is left empty.
month_AN_ML ( theMonthOrDate ; language ; abbrevOption ; monthNumOption ; style ) v.1

Get a month name or abbreviation in any language supported by the CF, and/or the month number, starting from a date or month number or starting from a month name or abbreviation provided in any supported language. Supported languages are: English, French, Spanish, Italian and Portuguese.

OPTIONS:

1. theMonthOrDate: a date or a month name or month name abbreviation with or without a month number (1 or 01 for January ... 12 for December). Month names and abbreviations must strictly match names and abbreviations found in the LISTS OF MONTH NAMES or ABBREVIATIONS found in the CF. Please note however that abbreviations ending with a period will not compromise the CF's performance;

2. language: "EN" ; "FR" ; "ES" ; "IT" ; "PT" . Please note that leaving the language option empty will cause the CF to return only the month number;

3. abbrevOption: empty ("") to return the month name or "1" to return the month abbreviation;

4. monthNumOption: empty ("") to omit the month number prefix; "1" to return the month name prefixed by the month number - ex. 1. ; "2" to return the month number prefixed by a "0" for month numbers lower than 10 - ex. 01.

5. style: "" returns the result in lowercase in all languages except English which is always returned in titlecase; "1" for titlecase; "2" for uppercase

########################

EX:
month_AL_ML ( " septiembre " ; "" ; "" ; "" ; "" ) > 9
month_AL_ML ( " abr. " ; "" ; "" ; "2" ; "" ) > 04
month_AL_ML ( " 2014-12-25 " ; "En" ; "" ; "" ; "" ) > December
month_AL_ML ( " 2014-08-25 " ; "Fr" ; "" ; "2" ; "" ) > 08. Août
month_AL_ML ( " 2014-04-25 " ; "Pt" ; "" ; "1" ; "" ) > 4. abr
month_AL_ML ( " 1 " ; "En" ; "" ; "" ; "" ) > January
month_AL_ML ( " 01 " ; "Fr" ; 1 ; "" ; "" ) > jan
month_AL_ML ( " January " ; "Es" ; "" ; 1 ; "" ) > 1. enero
month_AL_ML ( " January " ; "It" ; 1 ; 1 ; "" ) > 1. gen
month_AL_ML ( " January " ; "Es" ; 1 ; 2 ; "" ) > 01. ene
month_AL_ML ( " ene. " ; "En" ; 1 ; 2 ; 1 ) > 01. Jan
month_AL_ML ( " 12. Dezembro " ; "It" ; "" ; " 2 " ; "1" ) > 12. Dicembre
month_AL_ML ( " 07. lug " ; "Fr" ; " 1 " ; 2 ; 2 ) > 07. JUL

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it

Discuss:

There are no comments yet. Be the first to post a comment about this Custom Function! Please try to keep it brief & to the point. Anyone can post:

Your Name:
City/Location:
Comment:
characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted.
Answer 6 + 5 =
Search for Custom Functions:

Custom Functions Widget
Download the Custom Function Dashboard Widget for OS X
Keep all the latest Custom Functions right at your fingertips!

Newest Custom Functions:

1. ProperAllWords ( text )
  (Thu, Dec 14, 5:19pm)
2. MatchExist ( SourceTable.Field ; DestTable.Field ; ReturnField )
  (Thu, Dec 14, 1:07pm)
3. BVR_Format ( bvr )
  (Wed, Dec 13, 5:32pm)
4. NumberToHexadecimal(NumberValue)
  (Fri, Dec 08, 8:54am)
5. Get_BaseTable
  (Thu, Dec 07, 4:27pm)
6. JSONCreateVarsFromKeys ( json ; namespace )
  (Wed, Dec 06, 8:21pm)
7. GetTableNzme ( field )
  (Tue, Dec 05, 9:16pm)
8. TimeFormatAsText ( theTime )
  (Mon, Nov 13, 1:59pm)

RSS Feed of Custom Functions