title: Bind bootstrap datepicker with knockoutjs
body: <p>I want to use a bootstrap datepicker and to bind the selected date with knockoutjs.</p>
  
  <p>the function that uses the datepicker:</p>
  
  <pre><code>$(function() {
  
      // create the departure date
      $('#depart-date').datepicker({
          autoclose: true,
          format: 'yyyy/mm/dd',
      }).on('changeDate', function(ev) {
          ConfigureReturnDate();
      });
  
  
      $('#return-date').datepicker({
          autoclose: true,
          format: 'yyyy/mm/dd',
          startDate: $('#depart-date').val()
      });
  
      // Set the min date on page load
      ConfigureReturnDate();
  
      // Resets the min date of the return date
      function ConfigureReturnDate() {
          $('#return-date').datepicker('setStartDate', $('#depart-date').val());
      }
  
  });
  </code></pre>
  
  <p>Here is a fiddle that I want to use but is not sure how to go about doing so.
  <a href="http://jsfiddle.net/zNbUT/276/" rel="nofollow noreferrer">http://jsfiddle.net/zNbUT/276/</a></p>