I'm struggling with the answer to this, the reason I'm struggling is because the datepicker is working on one of my pages.
Could an issue be that i'm loading a datatable at the same time as the datepicker? Because on the broken page, i'm loading the datatable which uses the date from the datepicker.
Problem reproduced
JSFiddle - Without including the FilterLoggingTable function, it works fine.
Code snippet for Datepicker
if (typeof $('#generateDate, #loggingDatePicker').datepicker !== 'undefined') { var currentDate = new Date(); $('#generateDate, #loggingDatePicker').datepicker( { format: 'dd-mm-yyyy', autoclose: false }); $('#generateDate, #loggingDatePicker').datepicker('setValue', currentDate).datepicker('update').datepicker(); } HTML (Broken Datepicker)
<div class="col-sm-6"> <div class="input-group date col-md-3 pull-right" data-date-format="dd-mm-yyyy" data-date="12-04-2015"> <input id="loggingDatePicker" class="form-control" type="text" value="12-04-2015" size="14" /> <span class="input-group-addon add-on"> <span class="glyphicon glyphicon-calendar"></span> </span> </div> </div> HTML (Working Datepicker)
<div class="col-md-4 form-group"> <div class="input-group date " data-date-format="dd-mm-yyyy" data-date="12-04-2015"> <input id="generateDate" class="form-control generatePDFBTNS" type="text" value="12-04-2015" size="14" /> <span class="input-group-addon add-on"> <span class="glyphicon glyphicon-calendar"></span> </span> </div> </div> Broken Page

Working Page

autoclose:falsein datepicker