I've encountered an issue with the Angular Bootstrap Datepicker where I'm setting the min-date attribute as follows:
<input type="text" class="" uib-datepicker-popup="MM/dd/yyyy"
show-button-bar="false" ng-model="vm.date" ng-change="vm.DateChanged()"
min-date="vm.minDate" date-disabled="vm.disabledDates(date,mode)" />
In my controller, minDate
is defined as: (as shown in console)
vm.minDate = '2016-02-19'
However, despite setting this date, the calendar is still showing February 18 as available:
https://i.sstatic.net/NRlTQ.png<br
What could be causing this discrepancy?