title: How do you convert the SqlDateTime value to .Net::DateTime
body: <p>Tried searching everywhere and no go.</p>
  
  <p>The approach so far is <code>DateTime dt = (DateTime)sqlparam.Value;</code>. Which I can imagine can go wrong on different configurations, different SQL regional settings, different PC regional settings and so on. But then again, parsing value off SQL datetime string is even crazier idea.</p>
  
  <p>Is there a working solution for this, it's .NET, there should be one, right?</p>