Compare Date Without Time Lambda
c#, linq
Solution
x.SubmittedDt
should be
x.SubmittedDt.Date
... though you don't really need the `Where` because First (or FirstOrDefault) should handle what you want.
dailyOrders.First(x => x.SubmittedDt.Date == DateTime.Today && x.IsResetDone == false);
Problem
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(); ```