title: Convert DatePicker textbox into javascript Date
body: <p>I have a datepicker in 2 textboxes , in am trying to add the value of these text boxes to a function that needs a valid Javascript Date.  </p>
  
  <p>This is the part of the function   -  start is a Date</p>
  
  <pre><code>        else if (daystosearch == 'custom') {
              start.setDate(Date.parse($('#&lt;%= tStartDate.ClientID %&gt;').val()));
              end.setDate(Date.parse($('#&lt;%= tEndDate.ClientID %&gt;').val()));
          }
  </code></pre>
  
  <p>Date.Parse will not work , because value of the textbox is "10/29/2012"  which is not a parsable date.  How can I use <code>start.setDate</code> and get the value of the textboxes date ?</p>