How Can We Filter The Date From Database Through Linq!!!
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 21, 2013, 11:26 PM EDT
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.