Fix errors on datepicker format