selected date implemented