fixing date set with datepicker