Advantage Database Server

WEEK()

Advantage Concepts

WEEK()

Advantage Concepts

This is the first topic This is the last topic  

WEEK()

Advantage Concepts

This is the first topic This is the last topic  

Advantage Expression Engine function that returns the week number of a date value

 

Syntax

WEEK( <dDate> ) -> nWeek

 

Parameters

<dDate>  A date value to convert.

 

Return Values

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

 

Remarks

WEEK() is a date conversion function used to convert a date value to the week number and can be used in various date calculations.

 

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.

 

See Also

ISOWEEK()

YEAR()

MONTH()

DAY()

QUARTER()