Format Tokens

Date Expressions use the following tokens in parsing and formatting.

WARNING

Active language modifies the output automatically based on the assumed regional expected formatting:

  • the language of the Collection used for text generation
  • the Preview Language in Cockpit
TokenOutput
YearYYYY2000, 2001, 2002 ... 2012, 2013
YY00, 01, 02 ... 12, 13
MonthMMMMJanuary, February, March ...
MMMJan, Feb, Mar ...
MM01, 02, 03 ... 11, 12
M1, 2, 3 ... 11, 12
Day of YearDDDD001, 002, 003 ... 364, 365
DDD1, 2, 3, 4, 5 ...
Day of MonthDD01, 02, 03 ... 30, 31
D1, 2, 3 ... 30, 31
Do1st, 2nd, 3rd ... 30th, 31st
Day of WeekddddMonday, Tuesday, Wednesday ...
dddMon, Tue, Wed ...
d1, 2, 3 ... 6, 7
Hour (24-based)HH00, 01, 02 ... 23, 24
H0, 1, 2 ... 23, 24
Hour (12-based)hh01, 02, 03 ... 11, 12
h1, 2, 3 ... 11, 12
AM/PM markerAAM/PM
aam/pm
Minutemm00, 01, 02 ... 58, 59
m0, 1, 2 ... 58, 59
Secondss00, 01, 02 ... 58, 59
s0, 1, 2 ... 58, 59
Sub-secondS...0, 02, 003, 000006, 123123123123...
TimezoneZZZAsia/Baku, Europe/Warsaw, GMT ...
ZZ-07:00, -06:00 ... +06:00, +07:00
Z-0700, -0600 ... +0600, +0700
TimestampX1381685817