title: Displaying events by Month with Lambda
body: <p>I am displaying a list of events by day from SQL database using the code:</p>
  
  <pre><code>IEnumerable&lt;EventInstance&gt; distinctDate = instances
               .GroupBy(e =&gt; e.StartDate.Date)
               .Select(group =&gt; group.First());
  
  foreach (var instance in distinctDate)
              {
                  // code to display here
              }
  </code></pre>
  
  <p>What I am trying to do is divide them up by month on the page, so in between each month going down the page, i can put the Month Heading in a H3 tag</p>