This code breaks I think because there is time in SubmittedDt and DateTimeToday. How do I fix this to filter just by the dates NOT the time.
DailyOrder todaysOrderNotReset = dailyOrders.Where(x => x.SubmittedDt == DateTime.Today && x.IsResetDone == false).First();
should be
… though you don’t really need the
Wherebecause First (or FirstOrDefault) should handle what you want.