title: Get today date in Google Apps Script
body: <p>How do I get the Today date on google appscript?</p>
  
  <p>I need to write a code to input today´s date in a cell.</p>
  
  <pre><code>function changeDate(){
    var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(GA_CONFIG);
    var date = //Today´s date!?!?!!?
    var endDate = date;
  
    sheet.getRange(5, 2).setValue(endDate);
  
   }
  </code></pre>