Placeholders in invoice text: inserting month and year automatically
Placeholders are variables in double curly braces, such as {{month}} or {{year}}. reBill replaces them when it creates the invoice, with values based on the creation date. That way every recurring invoice shows the correct period without you editing the text.
Why placeholders?
A recurring invoice has the same content every month; only the period changes: “Support January”, “Support February”, “Support March”. Without placeholders the invoice either shows no period or you edit the text by hand every time.
All placeholders at a glance
The examples are for an invoice created on Thursday, 5 March 2026, in English.
| Placeholder | Result |
|---|---|
{{month}} | March |
{{previousMonth}} | February |
{{nextMonth}} | April |
{{previousMonth+Year}} | February 2026 |
{{monthPlus2}}, {{monthPlus3}} | May, June |
{{monthMinus2}}, {{monthMinus3}} | January, December |
{{monthShort}} | Mar |
{{monthNumber}} | 03 |
{{year}} | 2026 |
{{previousYear}}, {{nextYear}} | 2025, 2027 |
{{yearPlus2}}, {{yearPlus3}} | 2028, 2029 |
{{yearMinus2}}, {{yearMinus3}} | 2024, 2023 |
{{day}} | 05 |
{{dayName}} | Thursday |
{{date}} | 05.03.2026 |
Month and day names appear in the language of the invoice. On a German invoice {{month}} becomes “März”, on a French one “mars”.
Typical examples
- Billing the previous month: “IT support {{previousMonth+Year}}” becomes “IT support February 2026” on 1 March 2026.
- Rent in advance: “Rent {{nextMonth}} {{year}}”, created at the end of the month, names the coming month. Careful in December: {{year}} is still the old year then. If you bill January in December, use just “Rent {{nextMonth}}” without the year.
- Quarter: “Maintenance {{month}} to {{monthPlus2}} {{year}}” on an invoice created on 1 April reads “Maintenance April to June 2026”.
- Annual invoice in advance: “Licence {{nextYear}}”, created in December.
Placeholders in the email
The email template also knows the month and year placeholders. In addition there are {{amount}}, {{currency}} and {{payableBy}} for the invoice amount, currency and due date.
Frequently asked questions
Which date does reBill use for placeholders?
The date on which the invoice is created.
In which language do month names appear?
In the language of the invoice, for example German, French or English.
Can I use placeholders in the email too?
Yes. The email also has placeholders for amount, currency and due date.