When I use Jquery Ui DatePicker
, I can set a maximum date using the maxDate
attribute.
So:
$('#data-solicitacao').datepicker({maxDate: 'now'})
I thought the Bootstrap 3 DatePicker was the same, but it is not.
How can I set a maximum date in the Bootstrap DatePicker?