title: Get last written files without time using LINQ
body: <p>I have a folder with 198 files, among them there are 25 files with last writing date of 06.22.2014. I'm trying to get this set of last modified files, using the following code:</p>
  
  <pre><code>public static IEnumerable&lt;FileInfo&gt; GetLatestFiles(string path)
  {
      return new DirectoryInfo(path)
              .GetFiles("*.log")
              .GroupBy(f =&gt; f.Extension)
              .Select(g =&gt; g.OrderByDescending(f =&gt; f.LastWriteTime
              .Date
              .ToShortDateString())
              .First());
  }
  </code></pre>
  
  <p>However, it returns me only one file, because it checks also last time modification, despite I crop the date. Is there any approach to enumerate this list of files excluding time?</p>