This little tool helps you try out d3.time.format specifiers.
Documentation for time format specifiers is here.

Enter a date (year, month, day, hour, minutes, seconds):


Add your own format specifier (ex: %a):


Date formatted below: new Date(1986,0,2,11,39,13), or Tue Jan 28 1986 11:39:13 GMT+0000 (Coordinated Universal Time)
format specifier resulting formatted number
d3.time.format("%Y-%m-%d")1986-01-28
d3.time.format("%m/%d/%Y")01/28/1986
d3.time.format("%H:%M")11:39
d3.time.format("%H:%M %p")11:39 AM
d3.time.format("%B %d")January 28
d3.time.format("%d %b")28 Jan
d3.time.format("%d-%b-%y")28-Jan-86
d3.time.format("%S s")13 s
d3.time.format("%M m")39 m
d3.time.format("%H h")11 h
d3.time.format("%a")Tue
d3.time.format("%A")Tuesday
d3.time.format("%d d")28 d
d3.time.format("%b")Jan
d3.time.format("%m/%Y")01/1986
d3.time.format("%b %Y")Jan 1986
d3.time.format("%B")January
d3.time.format("%c")Tue Jan 28 11:39:13 1986
d3.time.format("%d")28
d3.time.format("%e")28
d3.time.format("%H")11
d3.time.format("%I")11
d3.time.format("%j")028
d3.time.format("%m")01
d3.time.format("%M")39
d3.time.format("%L")000
d3.time.format("%p")AM
d3.time.format("%S")13
d3.time.format("%U")04
d3.time.format("%w")2
d3.time.format("%W")04
d3.time.format("%x")01/28/1986
d3.time.format("%X")11:39:13
d3.time.format("%y")86
d3.time.format("%Z")+0000