I try to select records in database in 60 days 30 days 20 days differents in current date.
Please see this query in below.
var uploads = (
This should work:
using System.Data.Entity.SqlServer; where (int)SqlFunctions.DateDiff("day", product.EventDate, DateTime.Now) <= 60