title: Bootstrap-datetimepicker add days
body: <p>When i select a "From" date then "Days" of how many days to add, how can it automatically output the date on the "To" date?</p>
  
  <p>This is a picture of my project. the output of the "To" must be 06/06/2017</p>
  
  <p><a href="https://i.stack.imgur.com/sk1LV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sk1LV.png" alt="Sample Picture"></a></p>
  
  <p>I am using Eonasdan's Bootstrap-datetimepicker: <a href="https://eonasdan.github.io/bootstrap-datetimepicker/" rel="nofollow noreferrer">Link here</a></p>
  
  <p>This is my code:</p>
  
  <p>index.chtml</p>
  
  <pre><code>&lt;div class="row"&gt;
      &lt;label class="col-md-2 control-label"&gt;From:&lt;/label&gt;
      &lt;div class="col-md-10"&gt;x
          &lt;div class="input-group date" id="dpFrom"&gt;
              &lt;input type="text" class="form-control" /&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;
  &lt;/div&gt;
  
  &lt;div class="row"&gt;
      &lt;label class="col-md-2 control-label"&gt;Days:&lt;/label&gt;
      &lt;div class="col-md-10"&gt;
          &lt;input id="txtDays" type="text" class="form-control"&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="row"&gt;
      &lt;label class="col-md-2 control-label"&gt;To:&lt;/label&gt;
      &lt;div class="col-md-10"&gt;
          &lt;input id="txtTo" type="text" class="form-control" disabled&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code>$('#dpFrom').datetimepicker({
      format: 'MM/DD/YYYY'
  });
  </code></pre>