title: VB.NET variable date and time
body: <p>I need help to save date and time into 1 variable to save in SQL params. </p>
  
  <pre><code>I have textbox (txBulan) = "1",
  textbox (txTahun) = "2016",
  double (k) = "2",
  string (time) = "13:00:00"
  </code></pre>
  
  <p>And i want to save into 1 variable with format <code>"MM/dd/yyyy HH:mm:ss"</code>.</p>
  
  <pre><code>dim CI as datetime
  
  CI = CDate(Format((txBulan.Text &amp; "/" &amp; k-1 &amp; "/" &amp; CDbl(txTahun.Text) &amp; " " &amp; time), "MM/dd/yyyy HH:mm:ss"))
  </code></pre>