...
Variable | Meaning | Examples |
---|---|---|
${fireCount} | Fire count | 5 |
${createdDate.month} | Creation month | February |
${createdDate.year} | Creation year | 2015 |
${dueDate.month} | Due month | February |
${dueDate.year} | Due year | 2015 |
${createdDate.date} | Creation date in format dd/MMM/YY | 10/Feb/15 |
${dueDate.date} | Due date in format dd/MMM/YY | 10/Feb/15 |
${createdDate.completeDateTime} | Creation date in format dd/MMM/YY hh:mm | 10/Feb/15 2:05 PM |
${dueDate.completeDateTime} | Due date in format dd/MMM/YY hh:mm | 10/Feb/15 2:05 PM |
${createdDate.format("dd-MM-YYYY HH:mm")} | Creation date in custom format | 10-02-2015 14:05 |
${dueDate.format("dd-MM-YYYY HH:mm")} | Due date in custom format | 10-02-2015 14:05 |
You can define your own date format using the last two variables - simply by replacing the dd-MM-YYYY HH:mm
with the desired format. You can use following letters in date format:
G | Era designator | text | AD |
---|---|---|---|
C | Century of era (>=0) | number | 20 |
Y | Year of era (>=0) | year | 2007 |
y | Year | year | 2007 |
x | Weekyear | year | 2007 |
w | Week of weekyear | number | 27 |
e | Day of week | number | 2 |
E | Day of week | text | Tuesday; Tue |
D | Day of year | number | 189 |
M | Month of year | month | July; Jul; 07 |
d | Day of month | number | 10 |
a | Halfday of day | text | PM |
K | Hour of halfday (0~11) | number | 0 |
h | Clockhour of halfday (1~12) | number | 12 |
H | Hour of day (0~23) | number | 0 |
k | Clockhour of day (1~24) | number | 24 |
m | Minute of hour | number | 30 |
s | Second of minute | number | 55 |
S | Milisecond | number | 978 |
z | Time zone | text | Pacific Standard Time; PST |
Z | Time zone offset/id | zone | -0800; -08:00; America/Los_Angeles |