Create Date Based Aggregation.js