How Can We Filter The Date From Database Through Linq!!!
How Can We Filter The Date From Database Through Linq!!!
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Apr 22, 2013, 3:26 AM
is it the Time sensitive?
try...
DateTme dt = DateTime.Now;
var data = context.datetimes.Where(x => DateTime.Compare(x.mydate.Date, dt.Date) == 0).ToList();
Please change reference according to you code.
hope this will help you.