Creating Document Templates – Formatting Dates
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 wish to have in your template. You can add dates to your templates in various formats by using different variables.
Übersicht von Variablen zur Datumsformatierung
Im Folgenden geben wir Ihnen einen Überblick, aus welchen Variablen sich die Formatierungsangaben für Datumsangaben zusammensetzen können. In Personio ergeben mehrere Variablen (siehe Tabelle unten) eine Formatierungsoption. Die Variablen werden hier von geschwungenen Klammern eingefasst und sind beliebig zusammenstellbar.
Variable | Vale (DE) | Value (EN)* |
Tag | ||
d | 01-31 | 01-31 |
j | 1-31 | 1-31 |
S | st, nd, rd, th | |
Day of the week | ||
D | Mon | Mon |
l | Sonntag | Sunday |
Month | ||
F | January | January |
M | Jan | Jan |
m | 01-12 | 01-12 |
n | 1-12 | 1-12 |
Year | ||
Y | 1991 | 1991 |
y | 91 | 91 |
*Sie haben die Möglichkeit, beim Hochladen einer Vorlage die Sprache und somit die gewünschte Datumsformatierung auszuwählen. Wie Sie Dokumentvorlagen hinzufügen, finden Sie hier.
Formatierungsoptionen
Im Folgenden finden Sie einen Überblick über alle möglichen Formatierungsoptionen für Datumsangaben anhand des Beispielattributes "hire_date".
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.
Tag
Sonntag, 01. Januar 2017
{{hire_date|l, d. F Y}}
Sonntag, 1. Januar 2017
{{hire_date|l, j. F Y}}
Sunday, 01st January 2017
{{hire_date|l, dS F Y}}
Day of the week
Sonntag, 01. Januar 2017
{{hire_date|l, d. F Y}}
So, 01. Januar 2017
{{hire_date|D, d. F Y}}
Month
Sonntag, 01. Januar 2017
{{hire_date|l, d. F Y}}
Sonntag, 01. Jan 2017
{{hire_date|l, d. M Y}}
Sonntag, 01. 01. 2017
{{hire_date|l, d. m. Y}}
Sonntag, 01. 1. 2017
{{hire_date|l, d. n. Y}}
Jahr
Sonntag, 01. Januar 2017
{{hire_date|l, d. F Y}}
Sonntag, 01. Januar 17
{{hire_date|l, d. F y}}
Im Folgenden Artikel Auswahl-Textblöcke erfahren Sie mehr über die Erstellung der Dokumentvorlagen.
Can't find what you're looking for?
We are happy to help you! Just write us a message with your questions and we will get back to you as soon as possible.
Submit a request
Comments
Article is closed for comments.