title: Take the oldest file in foreach loop
body: <p>I have multiple file in a folder with a naming convention </p>
  
  <pre><code>Name_MoreName_DDMMYYYY_SomeNumber_HHMMSS.txt
  </code></pre>
  
  <p>How can I take only one file in a foreach loop which has oldest Date and Time (i.e. oldest DDMMYYYY and HHMMSS). I am restricted to use the foreach loop.</p>
  
  <p>Ex: </p>
  
  <ul>
  <li>Name_MoreName_22012012_SomeNumber_072334.txt</li>
  <li>Name_MoreName_22012012_SomeNumber_072134.txt</li>
  <li>Name_MoreName_24012012_SomeNumber_072339.txt</li>
  <li>Name_MoreName_22012012_SomeNumber_072135.txt</li>
  </ul>
  
  <p>So the oldest file will be </p>
  
  <pre><code>Name_MoreName_22012012_SomeNumber_072134.txt
  </code></pre>
  
  <p>how can i take the oldest file only ?</p>