title: How to fetch files from a directory based on condition
body: <p>I'm looking to fetch specific files from a directory based on their creation date. I want ".jpeg" files that their creation dates are more than 30 days before now to be fetched. how do we go about? I've written the code but I'm stuck in 'Where' clause</p>
  
  <pre><code>FileInfo[] fi;
  DirectoryInfo di= new DirectoryInfo(@"C:\src_folder");
  
  fi = di.GetFiles("*.jpeg").Where(....
  </code></pre>
  
  <p>Now here in 'Where' clause I'm not sure how do I go ahead for fetching files which are existed more than 30 days. </p>