title: How to convert string into datetime
body: <p>Using VB.Net</p>
  
  <p>When i click the gridview column, that selected column items should appear in the datetime picker</p>
  
  <p>GridView Column value is string, datetime picker datatype is datetime</p>
  
  <p>Code</p>
  
  <pre><code> Private Sub gridview1_CellContentDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles gridview1.CellContentDoubleClick
          Dim i As Integer
          i = gridview1.CurrentRow.Index
          Dim dt As String = gridview1.Item(1, i).Value
          datetimepicker1.value = CDate(dt)
   End Sub
  </code></pre>
  
  <p>When i clicked the gridview column, it is showing error as "Conversion from string "25/09/2011" to type 'Date' is not valid"</p>
  
  <p>How to solve the above problem</p>
  
  <p>Need VB.Net Code Help....</p>