I have a datepicker on my website but now I want to disable days based on time. I want to achieve 2 things:
How about changing minDate according to hour of the day?
var hour = new Date().getHours(); $("element").datepicker({ minDate: hour >= 14 ? 2 : 1});