date

Returns date formatted according to given format based on ISO 8601.

1
{{$date [value]}}
Example
format JSON XML
Data JSON
1
2
3
4
5
{
"Payment": {
"due": "20130208T080910.123"
}
}
HTML
1
{{$date Payment.due format="MMM D[,] YYYY"}}
Result
Data XML
1
2
<Payment due="20130208T080910.123">
</Payment>
HTML
1
{{$date Payment._due format="MMM D[,] YYYY"}}
Result

Params

1
2
3
4
{{$date
"string value"
format="MMM D[,] YYYY h:mm a"
}}

Options

formatScaping
Escaping characters[value]
Month
M1 2 … 11 12
MM01 02 … 11 12
MMMJan Feb … Nov Dec
MMMMJanuary February … November December
Day
D1 2 … 30 31
DD01 02 … 30 31
dddSun Mon … Fri Sat
ddddSunday Monday … Friday Saturday
Year
YY70 71 … 29 30
YYYY1970 1971 … 2029 2030
AM/PM
AAM PM
aam pm
Hour
H0 1 … 22 23
HH00 01 … 22 23
h1 2 … 11 12
hh01 02 … 11 12
k1 2 … 23 24
kk01 02 … 23 24
Minute
m0 1 … 58 59
mm00 01 … 58 59
Second
s0 1 … 58 59
ss00 01 … 58 59