Could not find this online anywhere, hope you guys can help.
I have a bootstrap datepicker in my webpage (so not jQuery, it's not working for some reason). This datepicker is part of an order form. People are supposed to place an order before 10am, so they can pick it up later that day at 11.45am (or order for a few days later).
The client wants to disable the user from picking the current day WHEN it is past 10am.
So lets say you order on 1sept and it is 9am, you can select the day of pickup to be 1 september. But when you order on the 1sept and it is already past 10 am, you can only pick 2september for pickup (or 3 sept or 4 or 5 ....)
How do I set this? I have already found to disable sundays, but not this...
HTML:
<form method="POST" action="http://boutique.dev/order" accept-charset="UTF-8">
<!-- ... -->
<input id="datepicker" type="text" class="form-control" name="date">
<!-- ... -->
</form>
JS:
$(document).ready(function(){
$( "#datepicker" ).datepicker({
format: "dd/mm/yy",
daysOfWeekDisabled: "0"
});
});