some error merging with dates

partially working when date selected has entries