title: How to convert DateTime to VarChar
body: <p>I need to convert a value which is in a <code>DateTime</code> variable into a <code>varchar</code> variable formatted as <code>yyyy-mm-dd</code> format (without time part).</p>
  <p>How do I do that?</p>