Aweek
aweek
returns the first day of a week number for the year.
aweek(EXPR_WEEK,EXPR_YEAR)
EXPR_WEEK
is an integer expression that returns the week number.EXPR_YEAR
is an integer expression that returns the year number between 1600 and 9999, or between 0 and 99. # Let's give the date that corresponds to the first Wednesday of the current week.WEDN_DATE = aweek(37,year(date$))+2# Other examplesDATE1=aweek(-1,2013) : # Corresponds to [17/12/2012]DATE2=aweek(0,16) : # Corresponds to [04/01/2016] if adxdcs is greater than 1916
The function aweek
calculates the date of the first day (Monday) for a week number in a year. The type of the result is Date.
The week is numbered from 0 to 53. The calculation mode follows the NF ISO 8601 norm and is as follows:
Error | Description |
---|---|
10 | The argument is not a string. |
56 | Incorrect data values (year not in the acceptable range). |
Date, week, day, day$, month, year, nday, nday$, adxdcs.