title: Group by based on year in date from data table in c#
body: <p>I have an data table like this  (Payment month column as date)</p>
  
  <pre><code>PaymentMonth        Amount
  
  01/01/2014           100
  
  01/02/2014           200
  
  01/03/2014           200
  
  01/01/2015           300
  
  01/02/2015           300
  
  01/01/2016           200
  </code></pre>
  
  <p>I need output datatable as below (group by using year in paymentmonth column)</p>
  
  <pre><code>Year    Amount
  
  2014     500
  
  2015     600
  
  2016     200
  </code></pre>
  
  <p>Get output datatable using linq or compute in c#</p>
  
  <p>Thanks
  M. Prabhu</p>