Fix datepicker selected date.