It's possible to use a date picker that allows user to choose a date easily. You have to
revalidate the field when the date is changed. The example below uses the
flatpickr, a lightweight and powerful datetime picker.
const fv = FormValidation.formValidation(form, {
fields: {
...
},
plugins: {
...
},
});
flatpickr(form.querySelector('[name="startDate"]'), {
...
onChange: function() {
fv.revalidateField('startDate');
},
});
flatpickr(form.querySelector('[name="endDate"]'), {
...
onChange: function() {
fv.revalidateField('endDate');
},
});