Brian Dunning's FileMaker Custom Functions

CF_GetDayName ( SetDate ; LanguageCode ; SetLength )

Get the name of day in a specified language

  Average rating: 4.7 (18 votes) Log in to vote

Hans Nagelgast   Hans Nagelgast
None
http://HTTP://none

Share on Facebook Share on Twitter

  Sample input:
CF_GetDayName ( 11-12-2015 ; NL ; 2 )
  Sample output:
Vr

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

What it is?
• In some cases the system language is not what you want
• With this CF you can get the Day name in the selected language and in the required length
• Hope this Custom Function comes in handy. Hans Nagelgast, Oss The Netherlands
• http://www.briandunning.com/cf/1848

How does it work? (11-dec-2015)
• CF_GetDayName ( "11-12-2015" ; "NL" ; 2 ) = Vr
• CF_GetDayName ( "11-12-2015" ; "NL" ; 3 ) = Vri
• CF_GetDayName ( "11-12-2015" ; "EN" ; 2 ) = Fr
• CF_GetDayName ( "11-12-2015" ; "EN" ; 3 ) = Fri
• CF_GetDayName ( "11-12-2015" ; "DE" ; 2 ) = Fr
• CF_GetDayName ( "11-12-2015" ; "DE" ; 3 ) = Fre

 

Comments

unix   unix, Japan
Jan 24, 2016
There need double quote to call
CF_GetDayName ( "11-12-2015" ; "NL" ; 2 )

You can shorten the code using Choose() function.

Case ( $LanguageCode = "DE" ; Choose ( DayOfWeek ( $Date ) - 1 ;
...
 
Hans Nagelgast   Hans Nagelgast, None
Jan 25, 2016
Thanks for your feedback
 

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.

Under construction. Email me your wish list for improvements.