How do you compare dates in a LINQ query?
Posted
by Gina
on Stack Overflow
See other posts from Stack Overflow
or by Gina
Published on 2009-09-15T15:45:23Z
Indexed on
2010/03/17
1:01 UTC
Read the original article
Hit count: 325
linq-to-sql
I am tring to compare a date from a asp calendar control to a date in the table.... here's what i have... it doesn't like the == ?
var query = from details in db.TD_TravelCalendar_Details
where details.StartDate == calStartDate.SelectedDate
&& details.EndDate == calEndDate.SelectedDate
select details;
© Stack Overflow or respective owner