How to disable "today" in jquery ui datepicker
Hello,
I have installed jquery ui datepicker and I am having a problem, I need to always disable today's day because it is about a manufacturing website which cannot deliver on the same day.
My current at the moment disables tuesdays and sundays, any idea how to disable always
the current day.
- //Checkout DatePicker
- function checkoutdisableddays(date) {
- var day = date.getDay();
- return [(day != 0 && day != 2)];
- }
- $('#datepicker').datepicker({beforeShowDay: checkoutdisableddays,dateFormat: 'dd-mm-yy'});
Thank you,