added dates into array