title: Convert html5 date input to date object
body: <p>I have a form setup with html5 date input what I wanna do is get that date add some days to it and then show the final result in another html5 date input</p>
  
  <p>In my code <a href="http://jsfiddle.net/CjEEs/4/" rel="nofollow">here,</a> the days are added to todays date.</p>
  
  <p>how do I alter the Javascript so that the days are added to the user selected date.</p>
  
  <p>current JS i am using:</p>
  
  <pre><code>var terms = $("#terms").val();
          var date = new Date();
          date.setDate(date.getDate() + terms);
          var day = ("0" + date.getDate()).slice(-2);
          var month = ("0" + (date.getMonth() + 1)).slice(-2);
          var final = date.getFullYear()+"-"+(month)+"-"+(day);
          $("#duedate").val(final);
  </code></pre>