title: Filter a list of dates (as string) older than x days
body: <p>Below is the code which is getting the date and filling it into list ,how can i get the days list which is more then 5 days old from today's date.</p>
  
  <pre><code>List&lt;DateTime&gt; fileDate = new List&lt;DateTime&gt;();
  for (int i = 0; i &lt;= countofdifffile; i++)
  {                        
      fileDate.Add(DateTime.ParseExact(fileListfordiff[i].Substring(22, 8), 
                                       "yyyyMMdd", CultureInfo.InvariantCulture));
  }
  </code></pre>