title: Find files in folders and subfolders that were created on the current date
body: <p>I am trying to find files that were created today. I found most of my answer in other posts, but can't quite get it right. The code below echos all of the files instead of just those that were created today. Any suggestions? Thanks.</p>
  
  <pre><code>$di = new RecursiveDirectoryIterator('/documents/listings');
  foreach (new RecursiveIteratorIterator($di) as $filename =&gt; $file) 
  {
  
      if (date ("m-d-Y", filemtime($file)) == date("m-d-Y")) 
  
      { echo $filename . '&lt;br/&gt;'; }
  
  }
  </code></pre>