title: Linq Search Date
body: <p>how do I used date on searching using Linq. I think I'm missing something on the declaration</p>
  
  <pre><code>string searchName = Request.Form["PersonName"];
  DateTime searchDateFrom = Request.Form["ReceivedDateFrom"];
  DateTime searchDateTo = Request.Form["ReceivedDateTo"];
  
  var Results = (from va in _db.myTable
         where ((va.PersonName.Contains(searchName)
                 &amp;&amp; (va.ApplicationReceivedDate &gt; searchDateFrom 
                     &amp;&amp; va.ApplicationReceivedDate &lt; searchDateTo)
                 select va).ToList();
  </code></pre>