title: How to get nullable DateTime out of the database
body: <p>My SQL Server database contains nullable DateTime values. How can I convert them to a nullable DateTime object in my application in C#?</p>
  
  <p>This is what I would think it would look like, but it doesn't:</p>
  
  <pre><code>DateTime? dt = (DateTime?) sqldatareader[0];
  </code></pre>