Rules: | Examples: |
1. to subtract a number of days from current date, use expression like [-NNd] | %dd[-1d]% |
2. to add a number of days to current date, use expression like [+NNd] | %ddd[+22d]% |
3. to subtract a number of months from current date, use expression like [-NNm] | %dm[-24m]% |
4. to add a number of month to current date, use expression like [+NNm] | %ddmm[+1m]% |
5. to subtract a number of years from current date, use expression like [-NNy] | %dmyy[-2y]% |
6. to add a number of years to current date, use expression like [+NNy] | %ddmmyyyy[+10y]% |
7. expression must be concluded in the same percent signs (%) that concludes date variables | %ddmm[-1d]% - correct expression %ddmm%[-1d] - invalid expression |
8. expression must be specified after regular date variables | %dd[-1d]% - correct expression %[-1d]dd% - incorrect expression |
9. you may use only one expression in each macro variable. |
%ddmm[-1m]% - correct expression (one variable and one expression)
%dd[-1d]%%mm[-1m]% - correct expression (2 variables, 1 expression in each variable)
%ddmm[-1d][-1m]% - incorrect expression (2 expressions in one variable) |