Please enable JavaScript to view this site.

 

Navigation: Tokens > Year Tokens

[year] Year of the Current Script Tokens

Scroll Prev Up Next More

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.

 

 

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: [yyyy:now] year of now.

 


Topic 178185, last updated on 12-Apr-2025