I'm implementing a function that brings me the different years of a set of dates and I use linq, it's something like this:
var uniqueYears = Entidades.Ventas.Select(s => s.Fecha.Year).Distinct();
Send me an error in .Year
I am using the linq directive. Any suggestions?
Greetings.