title: javascript countdown timer new date
body: <p>I am using javascript for a count down timer</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
          $(function() {
          var newYear = $(".HF").val();
              alert('hehe' + newYear);
              $('#countdown').countdown({ until:newYear, format: 'DHMS', layout:
  '&lt;div id="timer"&gt;' + '&lt;hr /&gt;' +
      '&lt;div id="timer_days" class="timer_numbers"&gt;{dnn}&lt;/div&gt;' +
      '&lt;div id="timer_hours" class="timer_numbers"&gt;{hnn}&lt;/div&gt;' +
      '&lt;div id="timer_mins" class="timer_numbers"&gt;{mnn}&lt;/div&gt;' +
      '&lt;div id="timer_seconds" class="timer_numbers"&gt;{snn}&lt;/div&gt;' +
  '&lt;div id="timer_labels"&gt;' +
      '&lt;div id="timer_days_label" class="timer_labels"&gt;days&lt;/div&gt;' +
      '&lt;div id="timer_hours_label" class="timer_labels"&gt;hours&lt;/div&gt;' +
      '&lt;div id="timer_mins_label" class="timer_labels"&gt;mins&lt;/div&gt;' +
      '&lt;div id="timer_seconds_label" class="timer_labels"&gt;secs&lt;/div&gt;' +
  '&lt;/div&gt;' +
  '&lt;/div&gt;'
              });
          });
  &lt;/script&gt;
  </code></pre>
  
  <p>it gets its until value from a hidden field <code>HF</code>.The value of the hidden field is a string 10/22/2011...but the timer shows only 34 mins left while it must show 2 days and some hours and some mins left..why??</p>