NTOCDOW()
Find day name by num of day
Syntax
NTOCDOW( <nDay> ) -> cDay
Argument
<nWeekday> Designates a weekday number from 1 to 7.
Returns
NTOCDOW() returns a name that corresponds to its weekday number.
Description
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) // “”
Note
. Function operation depends on the country-specific adaptation of your Harbour compiler. With an English version of Harbour, only English day names are returned.
Compliance
NTOCDOW() is compatible with CT3’s NTOCDOW().
Platforms
All
Files
Source is dattime2.prg, library is libct.
Seealso
CTODOW()
Pingback: Harbour Date & Time Functions | Viva Clipper !
Pingback: Harbour All Functions – N | Viva Clipper !