datepicker issue solved