title: google-apps-script Format Date
body: <p>I am beginner in script programing and I would like to format the date from today as following ("DD-MM-YY).
  I have written the following script</p>
  
  <pre><code>function onFormSubmit(e) {
  
  //Déclaration des variables
  var SheetResponse = SpreadsheetApp.getActiveSheet();
  var DerniereLigne =  SpreadsheetApp.getActiveSheet().getLastRow();
  var DateToday = new Date();
  var YearToday = DateToday.getYear();
  var DayToday = DateToday.getDate();
  var MonthToday = DateToday.getMonth() + 1;
  var ID = String(DayToday) + String(MonthToday) + String(YearToday);
  
  //Création de l'ID dans la derniére ligne et colonne "N"
  SheetResponse.getRange(DerniereLigne,14).setValue(ID);
  }
  </code></pre>
  
  <p>and the results is obviously for today (August 21, 2015) is "21082015", but I want only "210815".</p>
  
  <p>Could somebody help me.
  Thank you in advance.</p>