title: How to set format of DTPicker in vb6?
body: <pre><code>&lt;code&gt;
  private sub save_click()
  SQL = SQL + "DATE_OF_BIRTH=('" &amp; TO_CHAR(TO_DATE(DTPicker1.Value, "DD-MM-YYYY")) &amp; "'),"
  end sub
  &lt;/code&gt;
  </code></pre>
  
  <p>It is showing error like: sub or function not defined.
      please help</p>