title: How can I add 3 years to a date using Google scripting?
body: <p>I am trying to add 3 years to a date that I have extracted from a cell on a Google sheet.  My coded currently looks like this:</p>
  
  <pre><code>var courseDate = values[row][col];
  
  var courseDay = courseDate.getMonth();
  var courseMonth = courseDate.getMonth();
  var courseYear = courseDate.getYear();
  
  var renewalDate = new Date(courseYear + 3, courseMonth, courseDay);
  </code></pre>