STRFTIME

By Richard Felix and Chris Coyier. Live preview by Jake Moffatt

/
-
+
,
.
:
%
tab
new line
space
Century%C20 in 2009
Year%ywithout century
Year%Ywith century
Month%m01..12
Month%bJan
Month%BJanuary
Week%V01..53
Week%WAssuming Monday First 00..53
Week%UAssuming Sunday First 00..53
Day%aMon
Day%AMonday
Day%d01..31
Day%e 1..31
Day%w0..6
Day%j001..366
Day%u1..7
Full Date%D%m/%d/%y
VMS date%v%e-%b-%Y
ISO 8601%F%Y-%m-%d
Hour%H00..23
Hour%I01..12
Hour%k0..23
Hour%l0..12
Minute%M(00..59)
Second%S00..60
Seconds since 1970%s
Millisecond%L000..999
Millisecond%33 digits
Microsecond%66 digits
Nanosecond%99 digits
AM/PM%p
am/pm%P
12-hour%r%I:%M:%S %p
24-hour%R%H:%M
24-hour%T%H:%M:%S
Time zone%zhour offset (e.g. +0900)
Time Zone%Zname