Find a month name by the number of month
NTOCMONTH( <nMonth> ) -> cMonth
<nMonth> Designates a month number for which a month name is returned.
NToCMonth() returns the name that corresponds to the month number.
NToCMonth() determines the month name that corresponds to its month number. January is 1, February is 2, …, December is 12. If a number outside this range is passed, the function returns a null string as a value.
The function’s operation depends on the country specific adaptation of your Harbour compiler. With an English version of Harbour, only English day names are returned.
In English Harbour returns: ? NToCMonth(1) //"January" ? NToCMonth(2) //"February" ? NToCMonth(12) //"December" ? NToCMonth(14) //""
NTOCMONTH() is compatible with CT3’s NTOCMONTH().
Source is dattime2.prg, library is libct.