fix datepicker input format