DAYOFWEEK

Материал из Фабиус wiki
Перейти к: навигация, поиск

DAYOFWEEK - это функция ADS

Advantage Expression Engine function that returns the numeric day of a date value

Syntax

DAYOFWEEK(<dDate>) -> nDay

Parameters

<dDate> A date value to convert.

Return Values

DAYOFWEEK() returns a number in the range of 1 to 7 as an integer numeric value. If the date argument is empty, DAYOFWEEK() returns zero.

Remarks

DAYOFWEEK() is a date conversion function used to convert a date value to the numeric day of week value and can be used in various date calculations.


Note Advantage Expression Engine functions can be used in expressions such as record filter expressions and index expressions. They are not necessarily scalars supported within SQL statements. For a list of supported SQL scalar functions, see Supported Scalar Functions.