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.5
Syntax
 FUNCTION CDoW(
	dDate AS DATE
) AS STRING

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#
1? Today()                    // 06/05/93
2? CDoW(Today())            // Tuesday
3? CDoW(Today() + 7)            // Tuesday
4? CDoW(CToD("06/12/93"))        // Sunday
See Also