title: Trying to load an ASP textbox with HTML5 input type=Date element
body: <p>I'm trying to use the new HTML5 input type=date to load and asp:textbox with the date value. I either get nothing (empty label) back or I get (System.Web.UI.WebControls.TextBox). I'm trying just to use the HTML5 date input type.  Don't know if the problem is in my javascript or where.
  The user will:
  1.  select they're birthdate via the html5 datepicker.
  2.  The user clicks the submit button
  3.  at which time the datepicker has lost focus 
  4.  The javascript function "onblur" should kick in 
  5.  The  asp:textbox "tbDOB" should get loaded with  the date 
  6.  That date gets' sent back back to server.<br>
  7.  At that point for verification purposes the date should update the lblDateReturn label. </p>
  
  <p>Thanks
  Suge </p>
  
  <pre><code>       &lt;div id="dpDOB"&gt;
              &lt;asp:TextBox ID="tbDOB" runat="server"&gt;&lt;/asp:TextBox&gt;&lt;br /&gt;
              &lt;input type="date" id="dpDatePicker" onblur="blurFunction()" required /&gt;&lt;br /&gt;
              &lt;asp:Button ID="btnDOB" runat="server" Text="Submit" OnClick="btnDOB_Click()" /&gt;&lt;br/&gt;
              &lt;asp:Label ID="lblDateReturn" runat="server" Text=""&gt;&lt;/asp:Label&gt;                
          &lt;/div&gt; 
  
  
   function blurFunction()
   {
      var dateofBirth = document.getElementById("tbDOB"); //asp.net textbox
      var datepicker = document.getElementById("dbDatePicker"); 
      dateofBirth.value = datepicker.value; // Trying to load the asp.net textbox with the date
      alert("Date Picker lost focus");
   }
  
      protected void btnDOB_Click(object sender, EventArgs e)
      {
          //lblDateReturn.Text = tbDOB.Text; blank lable
          lblDateReturn.Text = tbDOB.ToString(); //I get back: System.Web.UI.WebControls.TextBox
      }
  </code></pre>