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 - Show more from this author
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.

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: