The function returns the character day of week value (e.g., Monday, Tuesday, etc.) for a particular date.
|1 f/c/e||The date value to use, must be of D type. If you do not specify a value here the function will use the current date.|
RETURN TYPE - A
The function will return the name of the day. If the receiving field is too small to hold the entire name only the portion that will fit will be returned.
The day names come from the standard Windows values setup for your location.
define x type a size 15
define d type d size 8
d = ctod('09/30/00')
x = CDOW(d)
// x = 'Saturday'
This is a TAS Professional 3.0 command here for compatibility. The preferred method is to use the
=DOW() function for numeric day of week, or =CDOW() for alphanumeric day of week. I have put this here only for reference
EQU_DAY recv_field FLD date_field
recv_field - fn/v - Required - The field that is going to receive the day value. If the receiving
field is A type then the result is the character day of week. If the receiving field is
numeric the result is the day ofweek number.
date_fld - fn/v - Required - The field containing the date value to use for calculating the day.
This is the equivalent of the TAS Professional 3.0 command Equals Day.
equ_day STDDAYS fld CHG.DATE