fix formatting for datepicker