made datePicker save date on focus lost