I have successfully implemented a Date time picker on my website. Everything is functioning properly, but I am looking to apply two validators: one to disable Saturday and Sunday, and the other to exclude US holidays. Below is the function I am currently using that disables Saturday and Sunday:
rome(mm,{
dateValidator: function (d) {
var dates = moment(d).day() !== 0 && moment(d).day() !== 6;
return dates;
},
min: s,
max: m,
time: false
});
The following code snippet works for excluding holidays:
rome(mm,{
dateValidator: rome.val.except(['2015-04-20', '2015-04-18', '2015-04-15']),
min: s,
max: m,
time: false
});
However, I am seeking guidance on how to combine both validators. Can anyone assist me with this challenge?