title: Date formatting in google-script
body: <p>I want to change the format to "mmm-dd-yyyy"(Nov-11-2019) using the code that I have.</p>
  
  <p>Please see below code:</p>
  
  <pre><code>    var timeStamp = data[i][timeStampappr];
      var formatted = (timeStamp.getMonth()+1) + '/' + timeStamp.getDate() + '/' + timeStamp.getYear();
  </code></pre>
  
  <p>Current format is 11/11/2019 and I want it to be like Nov-11-2019</p>