title: Remove timestamp from date in Google Apps Script
body: <p>I'm using this to snag a date value for cells that are created when a spreadsheet updates:</p>
  
  <pre><code>setValue(new Date()).setNumberFormat('MM/dd/yyyy')
  </code></pre>
  
  <p>But what I get back includes the timestamp (i.e. 10/31/2015 22:16:55), rather than just the date (10/31/2015). </p>
  
  <p>This creates a problem with the logic I'm using that references that cell. The logic is a basic <code>countif</code> statements that references date only. I could adjust to deal with <code>timestamp</code> but I would rather just not have the <code>timestamp</code>. Seems basic but I couldn't find any solution. What am I missing?</p>