use d3js date functions