disable past dates in datetimepicker
I'm using datetimepicker with bootstrap 4 and I want to not be possible to select past dates so I have the minDate like:
$( ".input-group.date" ).datetimepicker({
format: "dd MM yyyy - hh:ii",
autoclose: true,
todayBtn: true,
minuteStep: 5,
minDate: 0
});
But its not working, the user can select past dates. Do you know why?