Date Offset Suffixes

Navigation:  Tokens > Token Suffixes >

Date Offset Suffixes

Previous pageReturn to chapter overviewNext page

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:

 

[1d:-1m]

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

[1SR:-7d]

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

[#fa:+1d]

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

[1yyyy:+3y]

3 years after the year of day 1

 

*IMPORTANT: Date Offset Suffixes can only be specified as a number of days or months (such as :+5d or :-1m). Using the same notation, but as a number of weeks (such as :-2w or :+3w) is interpreted as a Minicalendar Current Week Offset Modifier.

 

See also : Minicalendar Current Week Offset Modifiers.


Topic 179755 updated on 03-Jul-2013.
Topic URL: http://www.qppstudio.net/webhelp/index.html?date_offset_suffixes.htm