Format string Meaning Sample output
d Short date 01/02/2010
D Long date Sunday, 02 January 2010
t Short time 17:18
T Long time 17:18:19
f Long date + short time Sunday, 02 January 2010 17:18
F Long date + long time Sunday, 02 January 2010 17:18:19
g Short date + short time 01/02/2010 17:18
G (default) Short date + long time 01/02/2010 17:18:19
m, M Month and day January 02
y, Y Year and month 2010 January
|