Control the datepicker so the date format is as desired