Required fields are marked *
Set data-disabled attribute to a condition in a date context: use any methods of Date and let the condition be true to disable the date. The date is in a variable "date".
getDay() === 6 || getDay() === 0
getDay() !== 3
date > new Date(2015,11,24) && date < new Date(2016,0,5)
window.disableDateIf(date)
Show Code