Personio offers several options for configuring dates in document templates. This article explains how to format date variables according to your company’s internal guidelines.
Create a text document in MS Office (DOCX/DOTX format) or OpenOffice (ODT/OTT format) and enter the text you want to have in your template. You can add dates to your templates in various formats by using different variables.
Overview of Date Formatting Variables
The following table provides an overview of the variables you can combine to display dates in your preferred format. In Personio, several variables (see table below) produce a formatting option. The variables here are in curly brackets and can be combined as required.
Variable | Value (EN)* |
Day | |
d | 01–31 |
j | 1–31 |
S | st, nd, rd, th |
Day of the week | |
D | Sun |
l | Sunday |
Month | |
F | January |
M | Jan |
m | 01–12 |
n | 1–12 |
Year | |
Y | 1991 |
y | 91 |
*When uploading a document template, you have the option of selecting a document language, and with it the language format for dates. Find out how to add document templates here.
Formatting Options
The following table provides an overview of all available date formatting options using the ‘hire_date’ attribute as an example.
If you want the {}day{} or {}month{} to be followed by a full stop or a comma, these need to be added after the relevant variable in your Word document.
Day
Sunday, 01 January 2017
{{hire_date|l, d. F Y}}
Sunday, 1 January 2017
{{hire_date|l, j. F Y}}
Sunday, 01st January 2017
{{hire_date|l, dS F Y}}
Day of the week
Sun, 01 January 2017
{{hire_date|l, d. F Y}}
Sunday, 01 January 2017
{{hire_date|D, d. F Y}}
Month
Sunday, 01 January 2017
{{hire_date|l, d. F Y}}
Sunday, 01 Jan 2017
{{hire_date|l, d. M Y}}
Sunday, 01 01. 2017
{{hire_date|l, d. m. Y}}
Sunday, 01. 1. 2017
{{hire_date|l, d. n. Y}}
Year
Sunday, 01 January 2017
{{hire_date|l, d. F Y}}
Sunday, 01 January 17
{{hire_date|l, d. F y}}
The following article explains how to use Text Blocks for Selection when creating document templates.