Generate an array of dates