create nillable inputs, datetimepicker fix for date type