title: Error Linq to Entities Datetime
body: <p>I have the following code</p>
  
  <pre><code>var dates = query.Select(
                   x =&gt; DateTime.ParseExact(x.Date, "yyyy-MM", CultureInfo.InvariantCulture));
  
  var minDate = dates.Min(x =&gt; x);
  </code></pre>
  
  <p>But When I execute that, I get the exception</p>
  
  <blockquote>
    <p>System.Data.Entity.dll but was not handled in user code</p>
    
    <p>Additional information: LINQ to Entities does not recognize the method
    'System.DateTime ParseExact(System.String, System.String,
    System.IFormatProvider)' method, and this method cannot be translated
    into a store expression.</p>
  </blockquote>
  
  <p>What am I doing wrong? And how I can fix that?</p>