TSalesr table has the date and amount field, including the date when the field is (date) (month) (year), I want to grouping by date total amount, total a value on the same day
Var sum=_dbContext. TSales. Where (a=& gt; A. d. ate. The Value & gt;=dt1 & amp; & A. d. ate. The Value & lt;=dt2) GroupBy (a=& gt; A. d. ate. Value) . Select (a=& gt; New { Sum_amount=a.S um (b=& gt; B.a mount)}). ToList ()
But such code is grouped by minutes when (date) (month) (year), how can be grouped by day?