Filtering folder files based on Date
<pre><code>DirectoryInfo info = new DirectoryInfo(Directory Name);
//... Other code 
var allLines = info.GetFiles("*.dat")
                          .Where(p =&gt; p.CreationTime.Date ==DateTime.Today.Date)
                           .SelectMany(p =&gt; File.ReadAllLines(p.FullName));
</code></pre>

<p>I am trying to fetch files which have been created today . But with this code I am get all the .dat files present in the folder which are over 3 months old. Any help!! Newbie in C#</p>