CDoW function

Official Content
This documentation is valid for:

Returns the weekday for a given date in the selected language. If no language is specified, the one selected in the Model Properties is used.

The value 'spaces' is returned if the received parameter is null.

Syntax

Cdow(date-expression | datetime-expression [ ,language ] )

Type returned:
Character(9)

Where:
language must be one of the following:

  • spa - Spanish
  • eng - English
  • por - Portuguese
  • ita – Italian
  • chs - Simplified Chinese
  • cht - Traditional Chinese
  • jap - Japanese

Examples

If English is the set language, and no other language is explicitly used in the function:

CDOW(CTOD('08/28/08')) = Thursday

If we specify 'spa', that is, Spanish as the language, then the result is displayed in Spanish no matter what default language has been set in the Model Properties.

CDOW(CTOD('08/28/08'), 'spa') = Jueves

Note

Implementation is case sensitive (all three characters have to be lowercase).

Scope

Objects   Procedure object, Transaction object, Web Panel object

See also

CMonth function
Dow function





Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.