xHarbour Reference Documentation > Function Reference |
Returns the number of a week day from its name.
CtoDoW( <cDayName> ) --> nDayOfWeek
The function returns the number of a week day, or 0 if an invalid name is specified.
Function CtoDoW() is the reverse function of CDow(), which returns the name of a week day. Numbering days of a week starts with Sunday = 1 (see Dow()).
This function depends on the SET EXACT setting. If it is OFF, <cDayName> can be abbreviated. If set to ON, <cDayName> must conain a complete day name.
See also: | CDoW(), CtoMonth(), NtoCDoW() |
Category: | CT:DateTime , Date and time |
Source: | ct\dattime2.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com