Skip to main content

Date/Time Variables

The following date/time field variables are used:

VariableFormat
d08/17/2000
DThursday, August 17, 2000
fThursday, August 17, 2000 16:32
FThursday, August 17, 2000 16:32:32
g08/17/2000 16:32
G08/17/2000 16:32:32
mAugust 17
rThu, 17 Aug 2000 23:32:32 GMT
s2000-08-17T16:32:32
t16:32
T16:32:32
u2000-08-17 23:32:32Z
UThursday, August 17, 2000 23:32:32
yAugust, 2000
d, dd, ddd, ddddCurrent day of the month d, dd=numeric, ddd=abbreviation (ie, "Wed"), dddd=spelled out.
f, ff, fff, ffff, fffffFractions of a second, varying numbers of digits
h, hh Hours12 hour format
H, HH Hours24 hour format
m, mm:Minutes
M, MM, MMM, MMMMMonth. MM = 2 digit, MMM = abbreviation (ie, "Jan"), MMMM=spelled out
s, ssSeconds
t, ttAM/PM indicator
y, yy, yyyyYear
z, zz, zzzTime zone offset from GMT. Time separator
/Date separator
Any other characterOther characters

Examples

VariableFormat
dddd, MMMM dd yyyyThursday, August 17 2000
ddd, MMM d "'"yyThu, Aug 17 '00
dddd, MMMM ddThursday, August 17
M/yy8/00
dd-MM-yy17-08-00

Other time span options:

  • totalmilliseconds
  • totalseconds
  • totalminutes
  • totalhours
  • totaldays

To get single date parts you can use percentage sign first:

{DATEFORMAT(%M)}

{DATEFORMAT(%d)}

More information: Microsoft date time strings

If you have a problem with Variables displaying other format than system it might be because you need to check the following below: