If the elements have a Date property, you can do:
DateTime startDate = DateTime.Now - new TimeSpan(0,1,0);
var items = Items.Where( i => i.Date >= startDate );
You can put the math in the Where statement directly, but it will be recalculated for each element, so I prefer to leave the original time outside the instruction.
source
share