How can data in document templates be formatted?

You can attach additional formatting options, separated by |, to Date variables. The format specifications can be made up of the following variables:

Variable Value
Date  
d 01-31
j 1-31
S st, nd, th
Week day  
D Mon
l Sunday
Month  
F January
M Jan
m 01-12
n 1-12
Year  
Y 1991
y 91

Example

The following formatting coverts the date 21.07.2016 to Thursday, 21. July 2016.

{{document_date|l, dS F Y}}
Have more questions? Submit a request

0 Comments

Article is closed for comments.