xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

CtoMonth()

Returns the number of a month from its name.

Syntax

CtoMonth( <cMonthName> ) --> nMonth

Arguments

<cMonthName>
This is a character string holding a month's name as returned by CMonth(). The case of <cMonthName> is ignored.

Return

The function returns the numeric month of a year, or 0 if an invalid month name is specified.

Description

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.

Info

See also:CMonth(), CtoDow(), NtoCMonth()
Category: CT:DateTime , Date and time
Source:ct\dattime2.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe