format data properly with d3.time.format