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.

 

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

*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.

Tag

Sunday, 01 January 2017

{{hire_date|l, d. F Y}}

Bildschirmfoto_2017-05-31_um_17.23.04.png

Sunday, 1 January 2017

{{hire_date|l, j. F Y}}

Bildschirmfoto_2017-05-31_um_18.03.18.png

Sunday, 01st January 2017

{{hire_date|l, dS F Y}}

Bildschirmfoto_2017-05-31_um_17.24.28.png

Day of the week

Sun, 01 January 2017

{{hire_date|l, d. F Y}}

Bildschirmfoto_2017-05-31_um_17.23.04.png Sunday, 01 January 2017

{{hire_date|D, d. F Y}}

Bildschirmfoto_2017-06-01_um_11.09.05.png

Month

Sunday, 01 January 2017

{{hire_date|l, d. F Y}}

Bildschirmfoto_2017-05-31_um_17.23.04.png

Sunday, 01 Jan 2017

{{hire_date|l, d. M Y}} 

Bildschirmfoto_2017-06-01_um_16.13.48.png

Sunday, 01 01. 2017

{{hire_date|l, d. m. Y}}

Bildschirmfoto_2017-06-01_um_16.12.19.png

Sunday, 01. 1. 2017

{{hire_date|l, d. n. Y}}

Bildschirmfoto_2017-06-01_um_11.24.07.pngYear

Sunday, 01 January 2017

{{hire_date|l, d. F Y}}

Bildschirmfoto_2017-05-31_um_17.23.04.png

Sunday, 01 January 17

{{hire_date|l, d. F y}}

Bildschirmfoto_2017-06-01_um_16.13.48.png

The following article explains how to use Text Blocks for Selection when creating document templates.

  

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

0 comments

Article is closed for comments.

    Topics of this article