Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Compare a database field to today's date

$
0
0
            var qryProjectsDueToday = from p in db.projects
                                      where p.need_date = ????? (I want today''s date)
                                      orderby p.project_id descending
                                      select p;

it doesn't like anything I try to put in there! How do I simply put today's date in the query?

thx


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>