Q: Jquery Datepicker - disable tomorrow and if Time after 9 pm disable day after tomorrow Working on order system, and i want user to order from next day(tomorrow) and if today is after 9:00PM, user should order from next to next day(day after tomorrow), I am using Jquery Datepicker
Below is myscript with no weekends
$(".datepicker").datepicker({
   dateFormat: "dd-mm-yy",
   beforeShowDay: $.datepicker.noWeekends

   });


A: You can try this:
var today = new Date();
$(".datepicker").datepicker({
   dateFormat: "dd-mm-yy",
   minDate: today.getHours() >= 21 ? 2 : 1

   });

Here is the DEMO.
