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.21
Syntax FUNCTION CDoW(
dDate AS DATE
) AS STRING
public static string CDoW(
Date dDate
)
Request Example
View SourceParameters
- 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():
1? Today()
2? CDoW(Today())
3? CDoW(Today() + 7)
4? CDoW(CToD("06/12/93"))
See Also