Please enable JavaScript to view this site.

 

Navigation: Tokens > Year Tokens

[syyyyDayValue2] Comparative Year Number

Scroll Prev Up Next More

We maintain support for this token so as not to break older scripts, but, for new scripts, you should always use MonthHeader tokens instead of the present token.

 

Use this year token if you only wish to show the year if the year is different for 2 DayValues of the current grid.

 

The numbers to the left and right of the syyyy are 2 different DayValues whose years are to be compared.

 

➢Note that you can replace yyyy by any of the YYyy, yyYY and YYYY combinations, and these rules will be "added" to those below.

 

A common use of this token is in weekly diaries, where the begin/end dates of the weeks are displayed differently if the week straddles a year boundary.

 

Using the following tokens :

 

[1Mmm] [1d] [1syyyy7] to [7Mmm] [7d] [7yyyy]

or

 [8Mmm] [8d] [8syyyy14] to [14Mmm] [14d] [14yyyy]

 

allows you to show the year of the first day of the week, only if the year changes during the week.

 

•Dec 7 to Dec 13 2026

•Dec 28 2026 to Jan 3 2027

 

Use filler tokens suffixes if the current token is next to a separator such as "-" or "/" and you do not want that separator to appear when the conversion of the comparative year token is blank.

 

See also: year tokens, [MonthHeader] change of month/year tokens.

 


Topic 108849, last updated on 18-Oct-2026