Navigation:  Reference > Functions >

CharDayOfWeek()

Print this Topic Previous pageReturn to chapter overviewNext page

 

CDOW(1)

 

PURPOSE

The function returns the character day of week value (e.g., Monday, Tuesday, etc.) for a particular date.

 

PARTS

 

1 f/c/eThe 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.

 

COMMENTS

The day names come from the standard Windows values setup for your location.

 

SEE ALSO

CMNTH()

 

EXAMPLE

define x type a size 15

define d type d size 8

d = ctod('09/30/00')

x = CDOW(d)

// x = 'Saturday'

 

Other Information

 

EQUALS DAY

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.

 

COMMENTS

This is the equivalent of the TAS Professional 3.0 command Equals Day.

 

 

EXAMPLE

 

equ_day STDDAYS fld CHG.DATE

 


Page url: http://www.cassoftware.com/tas/manual/cdow().htm