Instead of using fixed dates in templates, variables can be used:
day part of date |
- D - today
- P - initial day
- Z - last day
|
month part of month |
-
M - current month
-
P - first month of the current quarter
-
Z - last month of the current quarter
|
year part of date |
L - current year |
Add or deduct values using this variables.
This is an easy-to-use way for defining entire forms (e.g. quarterly chocolate
sales report).
See also: using variables for dates in templates.