Click or drag to resize

CDoW Function

Extract the name of the day of the week from a date.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.10
Syntax
 FUNCTION CDoW(
	dDate AS DATE
) AS STRING
View Source

Parameters

dDate
Type: Date
The date from which to extract the day of the week.

Return Value

Type: String
The name of the day of the week, where the first letter is uppercase and the rest of the string is lowercase.  For an invalid or NULL_DATE, CDoW() returns a NULL_STRING.
Remarks
CDoW() is a date conversion function used in formatting date displays for reports, labels, screens, and so on.  This function is nation-dependent.
Examples
These examples illustrate CDoW():
X#
? Today()                                        // 06/05/93
? CDoW(Today())                        // Tuesday
? CDoW(Today() + 7)                        // Tuesday
? CDoW(CToD("06/12/93"))                // Sunday
See Also