1.8

Table Of Contents
Formatting date and number values
Date and number values can be formatted using an optional pattern and/or locale.
Form Description Example Result
${expression} Do not format. ${system.time} July 4,
2009
12:30:55
PM
${expression,pattern} Apply pattern with
system locale
${system.time,
yyyyMMdd-HH:mm:ss}
20090704-
12:30:55
${
expression,pattern,locale
}
Apply pattern with
the specified
country locale
${system.time, "dd
MMMM yyyy", fr}
19
décembre
2017
${expression,,locale} Apply a default
format with the
specified country
locale
${system.time,,fr}
>
19
décembre
2017
12:30:55
It is possible to enclose the values of the pattern and locale in single or double quotes. This is
required for including whitespace in a pattern, or when the ${expression} would otherwise be
ambiguous.
At run-time, the output engine determines the type of the value yielded by the expression. If this
is a number, a number pattern is expected. For date/time-like types, a date pattern is expected.
When no pattern is specified, some default format is applied. For other types, it is not possible
to specify a pattern or locale.
Generating Email output
The Email context outputs HTML email with embedded formatting to an email client through the
use of an email server. The HTML generated by this context is meant to be compatible with as
many clients and as many devices as possible.
Page 596