title: How do I convert a Joda Time DateTime object into a String in SQL Server format?
body: <p>I am using the <a href="http://www.joda.org/joda-time/" rel="noreferrer">Joda-Time</a> library in Java, and have a date and time stored as an <a href="http://www.joda.org/joda-time/apidocs/org/joda/time/DateTime.html" rel="noreferrer">org.joda.time.DateTime</a> object.</p>
  
  <p>How can I reliably convert this DateTime object into a String that will be parsed correctly by SQL server (including timezone), such that I can use it in an INSERT SQL statement?</p>