formatting and datepicker