title: How to select the latest dateTime of every week ? C#
body: <p>I have to implement an algorithm who receive a list of DateTime and its recovers the latest DateTime of every week.</p>
  
  <p>Example:</p>
  
  <pre><code>29/06/2016 -&gt; Lastest date of the last week of the month
  27/06/2016
  24/06/2016 -&gt; Lastest date of the before last week of the month
  22/06/2016
  21/06/2016
  15/06/2016 -&gt; Lastest of the third week
  13/06/2016
  ...
  </code></pre>
  
  <p>Expected result</p>
  
  <pre><code>29/06/2016
  24/06/2016
  15/06/2016
  </code></pre>
  
  <p>I dont ask the code who done that but some directions or indication for resolve this problem.</p>