title: The specified type member 'Date' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties
body: <p>Using this code in <strong>Entity Framework</strong> I receive the following error. I need to get all the rows for a specific date, <code>DateTimeStart</code> is of type DataType in this format <code>2013-01-30 12:00:00.000</code></p>
  
  <p>Code:</p>
  
  <pre><code> var eventsCustom = eventCustomRepository.FindAllEventsCustomByUniqueStudentReference(userDevice.UniqueStudentReference)
                      .Where(x =&gt;  x.DateTimeStart.Date == currentDateTime.Date);
  </code></pre>
  
  <hr>
  
  <p>Error:</p>
  
  <blockquote>
    <p>base {System.SystemException} = {"The specified type member 'Date' is
    not supported in LINQ to Entities. Only initializers, entity members,
    and entity navigation properties are supported."}</p>
  </blockquote>
  
  <p>Any ideas how to fix it?</p>