I'm using dangrossman daterangepicker. I found a way to disable saturdays and sundays in the picker like this:
isInvalidDate: function(date){
return (date.day() == 0 || date.day() == 6);}
Then I am computing the number of days like this:
function(start, end, label)
{
console.log(label);
var hd = end.diff(start, 'days');
$('#totalDays').val(hd);
});
But it is still including the saturdays and sundays in the computation. Is there a way to exclude it ? thanks!