Aweek

aweek returns the first day of a week number for the year.

Syntax

 aweek(EXPR_WEEK,EXPR_YEAR)

Examples

 # 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

Description

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:

Associated errors

ErrorDescription
10The argument is not a string.
56Incorrect data values (year not in the acceptable range).

See also

Date, week, day, day$, month, year, nday, nday$, adxdcs.