Date Designators

Tinderbox Icon

Tinderbox's date parser accepts the following expressions as placeholders for calculated dates:

The following designators can be used to modify the above. However, if simply used on their own, rather than as a modifier they don't return a valid date/time:

There is a further special case:

Treat usage for the above as case sensitive.

Day placeholders - Sunday, Monday, etc. - may also be used. Tinderbox recognises the day of the week (in English, currently) and interprets it as the day after today with that week day. Thus on Sunday June 1, the date "Sunday" refers to Sunday, June 8.

In other respects, days of the week act like today and can be modified similarly, e.g. "Monday - 1" week is the previous Monday.

Dates may be modified by adding and subtracting "minutes", "days", "weeks" and "years":

"today+65 minutes" 

Note that the date arguments are written as quoted strings which my include addition/subtraction signs. This format is deprecated:

"today" +" 65 minutes" 

If using Attribute values in a date expression simple use the $-prefixed attribute name outside the quoted string:

$Modified+"5 minutes" 

From v5.6.0, if modifying a date and the expression part of code can not be parsed as a date modified, the unmodified date is returned; this avoids unintentional creation of undefined ('never') dates.


Up: Designators
Previous: Group Note Designators  Next: Link Designators 

A Tinderbox Reference File : Objects & Concepts : Designators : Date Designators aTbRef Site Map


[Last updated: 6 Feb 2012, using v5.10.1]

Google search aTbRef for:  

Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox