Live webinar What's new in Sodium: Information Requests, plus Q&A. Thu 19 Nov, 12 noon Information Requests + Q&A, Thu 19 Nov Reserve your place

YearTokens

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
currentinteger

Current calendar year (e.g. 2026).

Current calendar year (e.g. 2026).

currentStartstring

First day (1 January) of the current calendar year.

First day (1 January) of the current calendar year.

currentEndstring

Last day (31 December) of the current calendar year.

Last day (31 December) of the current calendar year.

previousinteger

Previous calendar year.

Previous calendar year.

previousStartstring

First day (1 January) of the previous calendar year.

First day (1 January) of the previous calendar year.

previousEndstring

Last day (31 December) of the previous calendar year.

Last day (31 December) of the previous calendar year.

nextinteger

Next calendar year.

Next calendar year.

nextStartstring

First day (1 January) of the next calendar year.

First day (1 January) of the next calendar year.

nextEndstring

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"
}

Contained in Schemas