title: Bootstrap datepicker resetting after reload
body: <p>Bootstrap DatePicker is resetting to default date after page reload. If I don't reload the page I'm able to keep selected date</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div class="form-group"&gt; 
    &lt;label&gt;Action Date &lt;/label&gt;
    &lt;div class='input-group date' id='dpServiceDate'&gt; 
      &lt;input type='text' class="form-control" id="actionDate" name="actionDate" /&gt; 
      &lt;span class="input-group-addon"&gt; 
        &lt;span class="glyphicon glyphicon-calendar"&gt;&lt;/span&gt; 
      &lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>$(document).ready(function() {
    $('#dpServiceDate').datetimepicker({
      defaultDate: "@Model.ActionDate.Date.ToString("MM-dd-yyyy")",
      format: 'MM-DD-YYYY',
      maxDate: moment().subtract(1, 'days')
    }).on('dp.change', function(e) {
      location.href = "/XYZ/DashBoard/Index?Id=" + @Model.ClientId + "&amp;ActionDate=" + $("#actionDate").val();
    })
  });
  </code></pre>