I have a datepicker on my website but now I want to disable days based on time. I want to achieve 2 things:
Is it possible through jquery?
How about changing minDate according to hour of the day?
var hour = new Date().getHours();
$("element").datepicker({ minDate: hour >= 14 ? 2 : 1});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With