title: jQuery datepicker UI getdate() - How do I just output date only and NOT Wed Oct 06 2010 17:00:00 GMT-0700 (Pacific Daylight Time)
body: <p>Currently this code is working but not as expected:</p>
  
  <pre><code>$("#start_date").datepicker({
          dateFormat: 'yy-mm-dd',
          onSelect: function(_date, _datepicker)
          {
              var myDate = new Date(_date);
              myDate.setDate(myDate.getDate()+8);
              $('#estimated_hatching_date').text(myDate);
              alert( myDate);       
          }
  
          });
  </code></pre>
  
  <p>The first issue is, how the date is presented.  Currently that code above alerts <strong>Fri Oct 01 2010 17:00:00 GMT-0700 (Pacific Daylight Time)</strong>.  I would like the output to be just the date, for example, 09/06/2010.</p>
  
  <p>The second issue is, <strong>$('#estimated_hatching_date').text(myDate);</strong> does not change the text.  When that code is fired nothing is changed.  However if I do: <strong>$('#estimated_hatching_date').text('myDate');</strong> myDate is placed into the #estimated_hatching_date div.</p>
  
  <p>So, how do I just output the date and replace the "text" inside of #estimated_hatching_date div with just the date +7 days from when a date is selected?</p>
  
  <p>Thank You,
       Rich</p>