set selected date in scope