title: Date and Time picker in ASP.net
body: <p><strong>I know this question is on SO a few times already but I cannot find a working or suitable answer.</strong></p>
  
  <p>I want a date picker which includes a time picker.  I don't want any fancy frills etc, just something that works.  Preferably one control I can drag into the tool box in <code>VS</code>, register at the top and work with.  I have been playing around with many versions the last few days and I can't get one to work.  They normally seem to include too many files for me or something stupid.  A project I am working on now hinges on this stupid thing so any advice would be welcome.  I have previously managed to get a calendar control and put some validation on a text-box to pick times.  However I cannot take both of these values and enter them into my database as on Date-time field because when I try to use "Selected-date" to get the time it naturally says that text-boxes cannot be members of the "Selected-date" property.  </p>
  
  <p>As I have a calendar control in to pick the date and a validated textbox to type in the time I tried to use the following code.  </p>
  
  <pre><code>Protected Sub Button1_Click(sender As Object, e As EventArgs)
      Dim time As String() = txtTime.SelectedDate.ToString().Trim().Split(" "C)
      Dim [date] As String() = cldDate.SelectedDate.ToString().Trim().Split(" "C)
      Dim datetime__1 As String = [date](0) &amp; " " &amp; time(1) &amp; time(2)
      Dim DateTimeValue As DateTime = DateTime.Parse(datetime__1)
      Response.Write(DateTimeValue.ToString())
      ' Update database with DateTimeValue.  
  End Sub
  </code></pre>
  
  <p>The code <code>txtTime.SelectedDate.ToString()</code> is a problem here.  It says that <code>SelectedDate</code> is not a supported member of textbox.  This is code that I have came across.  I'm pretty new to coding.  </p>