GetWeekOfYear('Rule*=0', 'FirstDayOfWeek*=0')
Arguments
|
'Rule*' |
Definition rule for first week of the year |
|
|
'Rule' = 0 |
The first week of the year is the one that includes at least 4 days of that year. (ISO 8601) |
|
|
'Rule' = 1 |
The first week of the year starts on January 1st. |
|
|
'Rule' = 2 |
The first week of the year starts on the first day of the week on or after January 1st. |
|
|
'FirstDayOfWeek*' |
Definition of first day of the week |
|
|
'FirstDayOfWeek'= 0 |
Monday (ISO 8601) |
|
|
'FirstDayOfWeek'= 1 |
Tuesday |
|
|
'FirstDayOfWeek'=2 |
Wednesday |
|
|
'FirstDayOfWeek'=3 |
Thursday |
|
|
'FirstDayOfWeek'= 4 |
Friday |
|
|
'FirstDayOfWeek'= 5 |
Saturday |
|
|
'FirstDayOfWeek'= 6 |
Sunday |
|
Parameters ending with * are only evaluated once at the start of the acquisition.
Description
This function returns the number of the current week in the current year. The week numbering is done according to 'Rule'.