title: How to convert MS SQL Date or DateTime to OADate?
body: <p>I know we can convert an OADateTime (the number format sometimes excel presents us with instead of datetime) to a valid DateTime like below -</p>
  <p><code>SELECT CAST(43982 AS datetime) -2</code></p>
  <p>which results in 2020-05-31 00:00:00.000.</p>
  <p>But how do we convert a DateTime to OADateTime in MS SQL?</p>