Add datepicker and format date