Hi, im trying to extract the most common YEAR from an array of DateTime objects using LINQ.
can someone help me? With the following its telling me i need to implement IComparable..
DateTime modeDate = (from c in dates
group c by c.Year into g
select g).Max().First();