xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

CtoDoW()

Returns the number of a week day from its name.

Syntax

CtoDoW( <cDayName> ) --> nDayOfWeek

Arguments

<cDayName>
This is a character string holding a week's day name as returned by CDoW(). The case of <cDayName> is ignored.

Return

The function returns the number of a week day, or 0 if an invalid name is specified.

Description

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.

Info

See also:CDoW(), CtoMonth(), NtoCDoW()
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