title: EF how to filter data by date
body: <p>I' using EF 4, I have a property <code>DateTimeStart</code> in my entities with datein this format <code>16/08/2012 08:14:40</code>,  I would like query with EF and find all the entities <code>within the date  16/08/2012 only</code>. Using this code below code I receive this error</p>
  
  <pre><code>The specified type member 'Date' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported.
  </code></pre>
  
  <p>my code</p>
  
  <pre><code> DateTime dateTimeNow = DateTime.UtcNow;
          DateTime dateNow = dateTimeNow.Date;
          return db.EventCustoms.Where(x =&gt; x.DataTimeStart.Date &lt;= dateNow)
              .Select(y =&gt; new { y.EventId, y.EventTitle, y.DataTimeStart });
  </code></pre>