Function CDow() Foundation

Converts a date value into the weekday name.

Syntax
CDow( <dDate> ) --> cNameOfDay
Parameters
<dDate>
<dDate> is a date value whose weekday is determined.
Return

The return value of CDow() is a character string containing the name of the weekday. When <dDate> contains an empty date, a null string ("") is returned.

Description

The conversion function CDow() is used to format date values. The names of the weekdays returned from CDow() depend on the operating system's country settings.

Examples
CDow()
// The example shows the return values of CDow() 

PROCEDURE Main 
   ? Date()                      // result: 12/06/94 
   ? CMonth( Date() )            // result: December 
   ? CDow( Date() )              // result: Tuesday 
   ? CDow( Date() + 1 )          // result: Wednesday 
   ? CDow( Date() + 2 )          // result: Thursday 
   ? CDow( Date() + 3 )          // result: Friday 
   ? CDow( Date() + 4 )          // result: Saturday 
   ? CDow( Date() + 5 )          // result: Sunday 
   ? CDow( Date() + 6 )          // result: Monday 
   ? CDow( Date() + 7 )          // result: Tuesday 
RETURN 
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.