NTOCMONTH()
Find a month name by the number of month
Syntax
NTOCMONTH( <nMonth> ) -> cMonth
Argument
<nMonth> Designates a month number for which a month name is returned.
Returns
NToCMonth() returns the name that corresponds to the month number.
Description
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.
Note
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.
Example
In English Harbour returns: ? NToCMonth(1) //"January" ? NToCMonth(2) //"February" ? NToCMonth(12) //"December" ? NToCMonth(14) //""
Compliance
NTOCMONTH() is compatible with CT3’s NTOCMONTH().
Platforms
All
Files
Source is dattime2.prg, library is libct.
Seealso
CTOMONTH()
Pingback: Harbour Date & Time Functions | Viva Clipper !
Pingback: Harbour All Functions – N | Viva Clipper !