d3.time.format code example Example: d3.time.format var formatTime = d3.timeFormat("%B %d, %Y"); formatTime(new Date); // "June 30, 2015"