title: "reset date value in Javascript"?
body: <ol>
  <li>How to "reset date value in Javascript" everytime the div in html is clicked? I am trying to make a basic delivery calculation date based from today's date, for example, 3 days delivery date from today(let say today is 5 November 2011). When user click on it, it must show the delivery date will be on Tuesday 8 November 2011, but when user click on it again, the second time, today's date has changed to be based on 8 November 2011 instead of 5. How to reset/clear the "Today" variable to be based on today's date?</li>
  <li>How to display day in Monday, Tuesday, Wednesday, and so on instead of 1,2,3,4,5,6,7?</li>
  </ol>
  
  <p>My current code is </p>
  
  <pre><code>$(document).ready(function() {
      var Today = new Date();
      var NumDelivery = 0;
  
      function Calculate() {
          var days = Today.getDay();
          var dd = Today.getDate();
          var mm = Today.getMonth() + 1;
          var y = Today.getFullYear();
          var FormattedDate = days + ',' + dd + '-'+ mm + '-'+ y;
          Today.setDate(Today.getDate() + NumDelivery); 
          $('#DateDelivery').text(FormattedDate);
      }
  </code></pre>