Changing date objects date using jquery
<p>Is there a way to just alter the date of a date object and leave the time as is.
For example I have a display of dates that are dynamically generated based on a week long of dates. So starting at today's date and showing all the dates in between today until the same day a week from now. This is all setup and when you click on one of those days I need a way to update a variable holding a current date to the date that represents the day that was clicked on.</p>

<p>The variable currentDate holds an object like this.</p>

<pre><code>var currentDate = {Thu Oct 06 2011 08:00:00 GMT-0400 (EDT)}
</code></pre>

<p>So the question is can I update just the Thu Oct 06 2011 part of the object with my newly clicked date while still keeping the time part of the object intact. </p>

<p>Thanks</p>
