title: How to format JavaScript date to mm/dd/yyyy?
body: <p>Im getting the date like 'Wed Nov 08 2017 00:00:00 GMT-0800 (Pacific Standard Time)' and putting the value in an input.</p>
  
  <p>Is there a way to parse the datetime into a date, add five days to it, and then format it like mm/dd/yyyy?</p>
  
  <p>I made a <a href="https://jsfiddle.net/ax6qqw0t/" rel="nofollow noreferrer">https://jsfiddle.net/ax6qqw0t/</a> </p>
  
  <pre><code>&lt;script&gt;
    startingDate = new Date(5/5/2017);
   var adjustedDate = addDays(startingDate,13);
  $('#max_products').val(adjustedDate);
  &lt;/script&gt;
  </code></pre>