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 Variables for Formatting Dates

The following table provides an overview of the variables you can combine to have dates shown in your preferred format. In Personio, you need to combine different variables (see table below) to define a formatting option. Variables are shown in curly brackets and can be combined freely.

Variable

Vale (DE)

Value (EN)*

Date

 

 

d

01-31

01-31

j

1-31

1-31

S

 

st, nd, rd, th

Day

 

 

D

Mon

Mon

l

Sonntag

Sunday

Month

 

 

F

Januar

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. Click here to find out how to add document templates.

 

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.

Date

Sunday, 01 January 2017

{{hire_date|l, d F Y}}

Date_Placeholder_Format_1.png

Sunday, 1 January 2017

{{hire_date|l, j F Y}}

Date_Placeholder_Format_2.png

Sunday, 01st January 2017

{{hire_date|l, dS F Y}}

Date_Placeholder_Format_3.png

 

Day

Sunday, 01 January 2017

{{hire_date|l, d F Y}}

Date_Placeholder_Format_4.png

Sun, 01 January 2017

{{hire_date|D, d F Y}}

Date_Placeholder_Format_5.png

 

Month

Sunday, 01 January 2017

{{hire_date|l, d F Y}}

Date_Placeholder_Format_6.png

Sunday, 01 Jan 2017

{{hire_date|l, d M Y}}

Date_Placeholder_Format_7.png

Sunday, 01. 01. 2017

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

Date_Placeholder_Format_8.png

Sunday, 01. 1. 2017

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

Date_Placeholder_Form_9.png

 

Year

Sunday, 01 January 2017

{{hire_date|l, d F Y}}

Date_Placeholder_Format_1.png

Sunday, 01 January 17

{{hire_date|l, d F y}}

Date_Placeholder_Format_10.png

Read our article on Text Blocks for Selection to find out more about 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