Refactored selected date.