Datepicker sticks to date