Format datepicker and textfield output.