title: Run custom function if value in cell is date
body: <p>I am new to Google scripting. I would like to check if the value in a cell is a date, and if so, to change the default format of the date, and then return the new formatted date value.</p>
  
  <p>Here is an example of what I would like:</p>
  
  <pre><code>var activeCellValues = SpreadsheetApp.getActiveRange().getValues();
  if ( activeCellValues = "Is_Type_Date")
         {   
            var activeCellValues = Utilities.formatDate(pubDateCell,"PST", "MM/dd/yyyy")
         }
  </code></pre>
  
  <p>Is this possible?</p>