I have a button on a page that calls a modal having datepicker.
If this button is at top (I don\'t have to scroll page to click), modal opens and datepicker displays
I just ran into this same issue. I was able to solve it by adding a container attribute to the div.
$('#myDatePicker').datepicker({
container:'#myModalId'
});
or if you are using the "lazy load" method as I was:
Reference : http://bootstrap-datepicker.readthedocs.org/en/latest/options.html
Hope it helps someone else!