title: google app scripting Cannot find function getFullYear in object
body: <p>I have this line in my code:</p>
  
  <p>var now= Utilities.formatDate(new Date(), SpreadsheetApp.getActive().getSpreadsheetTimeZone(), "EEE MMM d yyyy HH:mm:ss");</p>
  
  <p>But I got error when I tried to get the year from now. </p>
  
  <p>var yearnow= now.getFullYear();</p>
  
  <p>The error is: "TypeError: Cannot find function getFullYear in object Wed Apr 5 2017 09:56:26" </p>
  
  <p>Is there any way to fix this ?</p>
  
  <p>Thank you in advance!!</p>