title: how to convert string to mysql date format using vb.net?
body: <p>i want to insert a string as date format in mysql table using vb.net.my code is given below.but i always get an error .the string is stored in an array.</p>
  
  <pre><code>mycode
  ------
  
  Dim sdfsa As String = Convert.ToDateTime(newarray(i + 17)).ToShortDateString().ToString("yyyy-MM-dd")
  Dim newdate As Date = DateTime.ParseExact(sdfsa, "yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture)
  datarw("date_of_birth") = newdate
  </code></pre>