title: how to select the latest date from a IQueryable.GroupBy?
body: <p>I got the code below from <a href="https://stackoverflow.com/questions/1606679/remove-duplicates-in-the-list-using-linq">here</a></p>
  
  <pre><code>    var distinctAllEvaluationLicenses = allEvaluationLicenses.GroupBy((License =&gt; 
  License.dateCreated)).Select(License =&gt; License.First());
  </code></pre>
  
  <p>How can I select the latest 'dateCreated' instead of the First one?</p>