• support@answerspoint.com

Bootstrap DatePicker, how to set the start date for tomorrow?


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() {
        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:

All options that take a "Date" can handle a Date object; a String formatted according to the given format; or a timedelta relative to today, eg '-1d', '+6m +1y', etc, where valid units are 'd' (day), 'w' (week), 'm' (month), and 'y' (year).

So you would do:

    startDate: '+1d'
  • answered 7 years ago
  • B Butts


f you are talking about Datepicker for bootstrap, you set the start date (the min date) by using the following:

$('#datepicker').datepicker('setStartDate', <DATETIME STRING HERE>);
  • answered 7 years ago
  • B Butts

Your Answer

    Facebook Share        
  • asked 7 years ago
  • viewed 7684 times
  • active 7 years ago

Best Rated Questions