I'm using Bootstrap 3 Datetimepicker and I need to disable all my future dates, I know it has it's own disabledDates
function but I tried so many times and it's still not working.
What am I doing wrong?
$('#data_move').datetimepicker({
language: 'pt-BR',
disabledDates: [
moment("22/02/2017")
]
});
You should use
maxDate
option instead ofdisabledDates
.Here a working example: