title: Reading a datetime value from a SQL database
body: <p>How can I read datetime fields from a SQL database?</p>
  
  <p>This is not working: </p>
  
  <pre><code>emp.DateFacturation = (DateTime)(dr["DateFacturation"])
  </code></pre>
  
  <p>nor is this:</p>
  
  <pre><code>emp.DateFacturation = DateTime.Parse(dr["DateFacturation"].toString());
  </code></pre>