title: JavaScript New Date()
body: <p>I have the following JavaScript code but for some reason time is not including minutes:</p>
  
  <pre><code>var austDay = $("#&lt;%= hiddenFieldTime.ClientID %&gt;").val().split(" ");
  
  var year = austDay[0];
  
  var months = austDay[1];
  
  var days = austDay[2];
  
  var time = austDay[3];
  
  var timeUntil = new Date(parseInt(year), parseInt(months), 
                           parseInt(days), parseInt(time));
  </code></pre>
  
  <p>When I debug using firebug these are my value:</p>
  
  <pre><code>$("#ctl00_hiddenFieldTime").val() = "2011, 5, 6, 14:20:00"
  
  year = "2011,"
  
  months = "5,"
  
  days = "6,"
  
  time = "14:20:00"
  
  timeUntil = Date {Mon Jun 06 2011 14:00:00 GMT-0400 (Eastern Daylight Time)}
  </code></pre>
  
  <p>As you can see, timeUntil is set to <code>14:00:00</code> instead of <code>14:20:00</code></p>