Calendar year tokens available in templates.
Usage: {{ Year.Current }}, {{ Year.CurrentStart | formatDate: "dd MMM yyyy" }}, {{ Year.Next }}.
Shaped like SodiumHQ.DTOs.DocumentTemplate.TaxYearTokens so the two read the same way.
Properties
| Name | Type | Description |
|---|---|---|
| current | integer | Current calendar year (e.g. 2026). |
Current calendar year (e.g. 2026). | ||
| currentStart | string | First day (1 January) of the current calendar year. |
First day (1 January) of the current calendar year. | ||
| currentEnd | string | Last day (31 December) of the current calendar year. |
Last day (31 December) of the current calendar year. | ||
| previous | integer | Previous calendar year. |
Previous calendar year. | ||
| previousStart | string | First day (1 January) of the previous calendar year. |
First day (1 January) of the previous calendar year. | ||
| previousEnd | string | Last day (31 December) of the previous calendar year. |
Last day (31 December) of the previous calendar year. | ||
| next | integer | Next calendar year. |
Next calendar year. | ||
| nextStart | string | First day (1 January) of the next calendar year. |
First day (1 January) of the next calendar year. | ||
| nextEnd | string | Last day (31 December) of the next calendar year. |
Last day (31 December) of the next calendar year. | ||
JSON Example
{
"current": 0,
"currentStart": "2024-01-01",
"currentEnd": "2024-01-01",
"previous": 0,
"previousStart": "2024-01-01"
}