Autoclose datepicker after selecting a date. Displaying datetime without the time