The year token is a global token which displays the year of the current script as specified by the year scriptline property.
•[year] displays the 4-digit year.
•[yr] displays the 2-digit year.
You can display the value of this token and other global tokens in plain info pages and/or place holders with the use of global saras.
This is useful to be able to apply copyright dates, using a global sara such as the one below.
The FIND text can be one of the tokens allowed in Global Saras but it can also be any text that you wish. The CHANGE side can also be a combination of the tokens allowed in Global Saras as well as any plain text.
Script Year Offsets
If you wish to show a year before or after the script year, use the modifiers :-02, :-01, :+01, :+02, ...
➢so, for example to show the year prior to the script year as a copyright, you would use [year:-01].
You cannot use the usual year offset modifier as that change the date of the token, but the [yr] and [year] tokens do not depend on their date, but rather on the date of the script.
See also: global tokens.
Topic 178185, last updated on 12-Apr-2025