Week tokens are used to display some aspect of the week corresponding to a token's date (as specified by their DayValue).
Name |
Token |
Values * |
Description |
---|---|---|---|
[w] |
1 à 53 |
The ISO week number of a given date. |
|
[ww] |
01 à 53 |
Same as above, but always with 2 digits. |
|
[sw] |
1 à 53 |
Week number token with the start of prefix, same as [w], but shown only on the first day of the week, as defined by the Weekstart option of the GridOptions property.
This token support many options to display the week number on a different day than the first day of the week if that first day contains other events. |
|
[wy+] |
1 à 53 |
Week of the year. This token gives the exact same result as the [w] token, above. |
|
[wy-] |
52 à 0 |
Week remaining in the year. |
|
[W] |
W |
First letter only |
|
[Ww] |
eek |
Rest of the name, lowercase. |
|
[WW] |
EEK |
Rest of the name, uppercase. |
|
[wk] |
wk |
No change in case with respect to its value in the translation table. |
|
[Wk] |
Wk |
First letter in uppercase. |
|
[WK] |
WK |
All in uppercase. |
|
[week] |
week |
No change in case with respect to its value in the translation table. |
|
[Week] |
Week |
First letter in uppercase. |
|
[WEEK] |
WEEK |
All in uppercase. |
|
[.w] |
st, nd, rd, th, ... |
Short ordinal. |
|
[!w] |
First, Second, Third, Fourth, ... |
Full ordinal. |
|
[paye] |
Displays the paye week number used by the British tax authorities, and included in most UK business diaries, as described here. |
||
[ew] |
1 à 53 |
Similar to [w] and [ww] except that these display the School Week Number as used in Estonia and described here. |
|
[eww] |
01 à 53 |
Note that:
•The tokens in the table above refer to dates of the Gregorian calendar (ie. the standard Western calendar). There are also tokens that allow you to display dates based on the Chinese, Jewish, Korean, Muslim and Orthodox calendars.
•Values that are language dependent, are displayed below using the most commonly used English translation. The actual results that you will get will depend on the language selected, and the translation specified in the tokens and translations manager).
Week number calculations are based on the ISO definition: week 1 of any year is the week that contains the first Thursday of the year.
•The above definition means that weeks number 53 occur regularly, and that the 1st of January is often in week 53 of the previous year.
•Week numbers are displayed with some special rules when used in MiniCalendars, but in week tokens the week always starts on a Monday.
This definition is the same as saying "week 1 is the first week that is mostly in the new year". If the week includes a Thursday then it means 4 out of 7 days of that week (the majority) are in the new year, so it is more in the new year than in the old.
Topic 000099, last updated on 11-Feb-2022