- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
disableFunc: function (date) {
if ([1].include(date.getDay() + 1)) return true;
var What = new Date(date.getFullYear(), date.getMonth(), date.getDate());
var Min = new Date(2017, 7, 10);
if (Min >= What) return true;
var Max = new Date(2017, 7, 16);
if (Max < What) return true;
return false;
},
'What', indeed. Or should I say 'Why'