title: Error - SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM
body: <p>i have an app written for 2008.</p>
  
  <p>We are using linq to entities.</p>
  
  <p>We've now had to switch the DB to 2005. I am getting the following error on linq SELECT queries:</p>
  
  <blockquote>
    <p>Error - SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM. </p>
  </blockquote>
  
  <p>The offending line is:</p>
  
  <pre><code>DateOfBirth = ((s.Date_Of_Birth == null) || (s.Date_Of_Birth &lt;= lowdate)) ?
      DateTime.MinValue : s.Date_Of_Birth.Value,
  </code></pre>
  
  <p>DateOfBirth is of type DateTime and a property in our own business object (not entity).</p>
  
  <p>Anyone know how i can modify this line to make this query run? </p>