add selectTime according to the dates uses select