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

/* This function is written en Progress 4GL 9.1C */ /* It receives a date and returns the name of the day */ /* day of the week. */ /* Ezequiel Montoya Saldaña - Lima - Perú - 2016 */ RETURNS CHARACTER ( INPUT dDate AS DATE ) : DEFINE VARIABLE cDayList AS CHARACTER FORMAT "x(9)" INITIAL "Sunday, Monday, Tuesday, Wednesday, Thursday,Friday, Saturday". RETURN ENTRY(WEEKDAY(dDate),cDayList). /* Function return value. */ 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.