Code / Script: | d = Day of the month as a number from 1 through 31
dd = Day of the month as a number from 01 through 31, with leading zero.
ddd = Abbreviated name of the day of the week (Mon, Tues, Wed etc)
dddd = Represents the full name of the day of the week (Monday, Tuesday etc)
h = 12-hour clock hour (e.g. 7)
hh = 12-hour clock, with a leading 0 (e.g. 07)
H = 24-hour clock hour (e.g. 19)
HH = 24-hour clock hour, with a leading 0 (e.g. 19)
m = Minutes
mm = Minutes with a leading zero
M = Month number
MM = Month number with leading zero
MMM = Abbreviated Month Name (e.g. Dec)
MMMM = Full month name (e.g. December)
s = Seconds
ss = Seconds with leading zero
t = Abbreviated AM / PM (e.g. A or P)
tt = AM / PM (e.g. AM or PM)
y = Year, no leading zero (e.g. 2001 would be 1)
yy = Year, leadin zero (e.g. 2001 would be 01)
yyy = Year, (e.g. 2001 would be 2001)
yyyy = Year, (e.g. 2001 would be 2001)
K = Represents the time zone information of a date and time value (e.g. +05:00)
[Special Patterns]
D = dddd, dd MMMM yyyy (e.g. Tuesday, 22 August 2009)
F = dddd, dd MMMM yyyy HH:mm:ss (e.g. Tuesday, 22 August 2006 06:30:07)
G = MM/dd/yyyy HH:mm:ss (e.g. 08/22/2006 06:30:07)
M = MMMM dd (e.g. August 22) |