title: Remove time stamp from date stamp from an email subject line
body: <p>This is what the email subject line looks like:
  Your loaner laptop reservation expired on Tue Jul 19 2022 00:00:00 GMT-0500 (Central Daylight Time)</p>
  <p>I would like to remove <strong>00:00:00 GMT-0500 (Central Daylight Time)</strong> from it.</p>
  <p>I have the following code to send the email:</p>
  <pre><code>//Sends emails from Google sheet
  
  function sendEmails() {
      var today = new Date();
      var sheet = SpreadsheetApp.getActiveSheet();
      var startRow = 2 
      var numRows = 999 
      var dataRange = sheet.getRange(startRow, 1, numRows, 999);
   
    // Fetch values for each row in the Range.
      var data = dataRange.getValues()
      for (var i = 0; i &lt; data.length; ++i) {
      var row = data[i];
      var S_E_address = row[3];
      var Staff_F_L_N = row[2];
      var TS_Member = row[9];
      var Rtn_Date_Reserve = row[6];
      var LL_Name = row[8];
      var Form_Submitter = row[1];
  
      if (Rtn_Date_Reserve !=today) //skip this reminder if not today's date
      
      var subject = &quot;Your loaner laptop reservation expired on &quot; + Rtn_Date_Reserve;
      var message = &quot;Hello &quot; + Staff_F_L_N + &quot;, &quot; + &quot; Please contact &quot; + TS_Member + &quot; at &quot; + Form_Submitter + &quot; if you need more time to use &quot; + LL_Name + &quot; or submit a help desk ticket to kace@mnhs.org.&quot; + &quot; Thank you.&quot;;
   
  MailApp.sendEmail({
      name: row [1],
      to: row[3],
      subject: subject,
      htmlBody: message,
      bcc: row [1]
   
       }
      )
     }
    }
   }
  </code></pre>
  <p>And this code to format the date:</p>
  <pre><code>function formatDate() {
  
      const date = new Date();
  
      const formattedDate = date.toLocaleString(&quot;en-US&quot;, {
  
      &quot;dateStyle&quot;: &quot;medium&quot;
  
    });
  }
  </code></pre>
  <p>How do I combine the two functions to remove the timestamp and send the email?
  Thank you,
  Theresa</p>