title: Getting Date a Year From Now in Google Apps Script
body: <p>I'm working on a spreadsheet in Google Drive to keep track of when we need to get our employees their annual reviews. As part of the calculations, I need to be able to compute their anniversary dates by adding years to their start dates. I'm trying this:</p>
  
  <p><code>
     returnDate = returnDate.setYear( returnDate.getYear() + 1);
  </code></p>
  
  <p>Alas, the scripting language that google supports seems to lack many of the useful functions of a fully-fledged Javascript Date object, as I get this error on that line when I try to run it:</p>
  
  <p><code>
  TypeError: Cannot find function setYear in object 1357106400000. (line 28, file "Code")
  </code></p>
  
  <p>So, how can one compute a series of anniversary dates using the tools available in Google Apps Script?</p>
  
  <p>Thanks for any help.</p>