This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||
|
4D v20 R7
WEEK
|
|
||
The WEEK function returns the week of the year (ranging from 1 to 54) of the date passed in the arithmetic_expression. The week begins on Sunday and January 1st is always in the first week.
This example returns a number representing the week of the year for each date of birth passed:
SELECT WEEK(Date_of_birth);
Product: 4D
Theme: Functions
4D SQL Reference ( 4D v20 R7)