title: Format current Date with time as Date, not as String
body: <p>I try to parse the currenct date and time in a Date variable to store the value in a sql database (datetime).</p>
  
  <p>I have tried this, but get a error:</p>
  
  <pre><code>Dim dDate As Date = Date.ParseExact(CType(Date.Now, String), "dd-MM-yyyy HH:mm:ss", CultureInfo.InvariantCulture)
  </code></pre>
  
  <p>Here is the parte for the sql parameter:</p>
  
  <pre><code>cmd.Parameters.Add(New SqlClient.SqlParameter("@DATUMERSTELLUNG", dDate))
  </code></pre>