title: how to get date from ajax calender in asp.net
body: <p>The following  is my .aspx code for ajax calender</p>
  
  <pre><code> &lt;ajax:CalendarExtender ID="CalendarExtender1" TargetControlID="TextBox1" runat="server"&gt;
              &lt;/ajax:CalendarExtender&gt;
              &lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt;
             &lt;/td&gt;&lt;td&gt;
  </code></pre>
  
  <p>and aspx.cs code is</p>
  
  <pre><code>string date = Request.Form[TextBox1.UniqueID];
          comp.DATETIME = Convert.ToDateTime(date);
  </code></pre>
  
  <p>string value could not converted to datetime. how to convert this into datetime</p>