adding datepicker and configuring the calendar format