Skip to main content

Formatting values

Put a token in any text and it is replaced with data at render time. Wrap tokens in double curly braces. A token can add a filter after a |.

The basics​

TokenPrints
{{field}}The field's value
{{field | date:"medium"}}A date, using a preset
{{field | date:"dd/MM/yyyy"}}A date, using a custom pattern
{{field | datetime:"24h"}}A date and time
{{field | number:"#,##0.00"}}A number, using a pattern
{{field | number:"decimal"}}A number, using a preset
{{field | number}}A number, default pattern #,##0.##

Declare a field as date, datetime or number in the schema panel and its format picker inserts the right token for you.

Date and datetime presets​

PresetDate exampleDatetime example
mediumMay 25, 2026May 25, 2026, 2:30 PM
short5/25/20265/25/2026, 2:30 PM
longMonday, May 25, 2026Monday, May 25, 2026, 2:30 PM
iso2026-05-252026-05-25T14:30:00
time2:30 PM
24h2026-05-25 14:30

time and 24h are datetime presets.

Custom date patterns​

Use these pieces, plus 'literal text' in single quotes:

yyyy yy MMMM MMM MM M dddd ddd dd d HH H hh h mm m ss s tt t

Example: {{issuedAt | date:"dd/MM/yyyy"}}.

Numbers​

Presets:

PresetPatternExample
integer#,##01,235
decimal#,##0.001,234.50
percent0%12%

A custom pattern uses 0 (a required digit), # (an optional digit), , (grouping), . (the decimal point), % (percent), 'literal' text, and a ; section for negative numbers. Rounding is half away from zero, done on the number's digits, so the PDF and the designer agree.

A value that can't be read as a number prints unchanged.

Values from the system​

TokenPrints
{{$today | date:"long"}}The date at render time
{{$now | datetime:"short"}}The date and time at render time
{{$page}} / {{$pages}}The page number and the page count

The Dynamic values section of the schema panel inserts the date tokens, with a format choice.

Table columns​

A table column has a format as setting (text, number, date…) with the same presets and patterns, so a column can format its values without tokens.