How can I set the startDate for tomorrow? I don’t see an option in the documentation for Date.today so I can add one more day.
Is there a way to accomplish this?
$(function() {
$("#appointment_adate").datepicker({
format: 'yyyy-mm-d',
autoclose: true,
startDate: '+1d'
});
});
There is no official datepicker for bootstrap; as such, you should explicitly state which one you’re using.
If you’re using eternicode/bootstrap-datepicker, there’s a startDate option. As discussed directly under the Options section in the README:
So you would do: