xHarbour Reference Documentation > Function Reference |
Returns the number of a month from its name.
CtoMonth( <cMonthName> ) --> nMonth
The function returns the numeric month of a year, or 0 if an invalid month name is specified.
Function CtoMont() is the reverse function of CMonth(), which returns the name of a month.
This function depends on the SET EXACT setting. If it is OFF, <cMonthName> can be abbreviated. If set to ON, <cMonthName> must contain a complete month name.
See also: | CMonth(), CtoDow(), NtoCMonth() |
Category: | CT:DateTime , Date and time |
Source: | ct\dattime2.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com