Find day name by num of day
NTOCDOW( <nDay> ) -> cDay
<nWeekday> Designates a weekday number from 1 to 7.
NTOCDOW() returns a name that corresponds to its weekday number.
This function converts a weekday number into the corresponding name. Sunday is 1, Monday is 2, Saturday is 7. If you pass a number outside of this range, the function returns a 0 value. Example In English Harbour returns: ? NTOCDOW(1) // “Sunday” ? NTOCDOW(4) // “Wednesday” ? NTOCDOW(7) // “Saturday” ? NTOCDOW(8) // “”
. Function operation depends on the country-specific adaptation of your Harbour compiler. With an English version of Harbour, only English day names are returned.
NTOCDOW() is compatible with CT3’s NTOCDOW().
Source is dattime2.prg, library is libct.