Please enable JavaScript to view this site.


Navigation: Tokens > Token Suffixes

Date Offset Suffixes

Scroll Prev Up Next More

Date Offset Suffixes are used to specify that a token is to be evaluated for a certain number of days or months* before or after the date indicated by its DayValue.


These suffixes are particularly useful in the text and tokens to display on each generated line field of GenTokens Options, where the DayValue is dynamic.


The structure of these suffixes is as follows:


the suffix is added at the end of any token

it begins with a colon :

followed by a plus or minus

followed by the number of days or months to offset

followed by d or m or y depending if the offset is counted in days or months or years*.


Some examples:



Evaluate the token [1d] one month before the date determined by DayValue 1.


Show the Sunrise of one week before (note how we use 7 days rather than 1 week)*


The a-Holidays of tomorrow (used inside GenTokens Options)


3 years after the year of day 1


*IMPORTANT: Date Offset Suffixes can only be specified as a number of days or months or years (such as :+5d or :-1m or :+2y). Using the same notation, but as a number of weeks (such as :-2w or :+3w) is interpreted as a Minicalendar Current Week Offset Modifier. To have a number of weeks as offset, use 7 times that number in days (for example use :+21d instead of :+3w).


See also: minicalendar starting date offset modifier, minicalendar current week offset modifier, minicalendar year offset modifier, minicalendar offset from script year modifier.


Topic 179755, last updated on 19-Apr-2020