title: Convert DateTime to Int
body: <p>This is the sample I did in SQL Server</p>
  
  <pre><code>SELECT CAST(CAST('2012-01-25 10:00:00.000' AS DATETIME) AS INT) + 2
  </code></pre>
  
  <p>Result is 40933</p>
  
  <p>How can I achieve this using c#? From where and how this integer comes?</p>
  
  <p>Reference: <a href="https://stackoverflow.com/questions/5505935/convert-from-datetime-to-int">Convert from DateTime to INT</a> but this is what I need in c#</p>