Please enable JavaScript to view this site.

 

Navigation: Tokens > Year Tokens

Year of Parent Minicalendar

Scroll Prev Up Next More

Use the :mc suffix with [yy] or [yyyy] to obtain the year corresponding to the parent mini-calendar token’s DayValue, as evaluated outside the mini-calendar.

 

➢For example, inside [4mc+01], [yyyy:mc] gives the same year as [4yyyy] outside the mini-calendar, without applying the mini-calendar’s month offset.

 

This can be use, along with a conditional token, to display the year in a mini-calendar, but only when the year is different than the year of the mini-calendar token (and presumably the year of the current spread):

 

[1mc+00][Mmmm][?yyyy:mc~_yyyy_|_yyyy_|]

 

Note that this suffix can only be used inside a mini-calendar. If you try to use it in a token that is not inside a mini-calendar, then you will get an run-time error message.

 

See also: year tokens, year of now, year offset, mini-calendar year offset modifier.

 


Topic 180495, last updated on 05-Nov-2026