Returns the Day of the Week Name as a character value - Written in Progress/OpenEgde 4GL

RETURNS CHARACTER ( INPUT dFch AS DATE ) : DEFINE VARIABLE daylist AS CHARACTER FORMAT "x(9)" /* INITIAL "Sunday, Monday, Tuesday, Wednesday, Thursday,Friday, Saturday".*/ INITIAL "Domingo,Lunes,Martes,Miercoles,Jueves,Viernes,Sabado". RETURN ENTRY(WEEKDAY(dFch),daylist). END FUNCTION.
This function is really simple and based on the Progress Knowledge base.
Progress doesn't provide a function to do this, so a lot of programmers need to write it.
You can adjust the length of cDayList according to your language needs.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.