title: Add Number of months to a Date in a text field
body: <pre><code>function addDays(){ 
        var myDate =document.getElementById('treatdate'); 
        var numberOfDaysToAdd = document.getElementById('resultdays'); 
        var tset = numberOfDaysToAdd.value; 
        var result1 = myDate.value.addMonths(parseInt(tset)); 
        var pldate= moment(result1).format('YYYY-MM-DD');
        return pldate; }
  </code></pre>
  
  <p>'treatdate' is an id for a treatment date which is pulled from my database. Thanks in advance.</p>