title: Converting Date string to DateTime Format vb.net
body: <p>I have this example and it gives me exception "Conversion from string x to dateTime is invalid"</p>
  
  <p>here is my method to validate Datetime.</p>
  
  <p>Example Date string : "27/03/1985"</p>
  
  <pre><code>Public Function validateDateColumn(ByRef FieldName As String) As Boolean
  
      Try
          If IsDate(FieldName) Then
              Dim actualDate As DateTime = CDate(FieldName)
              Dim DtLicExp As DateTime = CDate(actualDate.ToString("d", Thread.CurrentThread.CurrentCulture))
              FieldName = DtLicExp.ToString("MM/dd/yyyy")
              Return True
          End If
      Catch ex As Exception
          'FieldName &amp;= "Format must be MM/dd/yyyy"
          Return False
      End Try
  
  End Function
  </code></pre>
  
  <p>any idea to validate this date string formate to datetime.</p>
  
  <p>I want to convert this date "27/03/1985" to datetime.</p>
  
  <p>I'm using asp.net with vb.net.</p>