title: Which should be the correct date format for Date.parse?
body: <p>Hey guys, Im having trouble knowing wat is the correct date format i should put for date.parse() function.</p>
  
  <p>I want to use mm/dd/yyyy in the function like this.</p>
  
  <pre><code>alert("Date: "+Date.parse("11/28/2011")); 
  //--&gt;Its showing me Date:NaN as output.
  </code></pre>
  
  <p>also I wanted to know what output should I be getting if I do this following code:</p>
  
  <pre><code>date = Date.parse('12/31/2011' +' UTC');
  var minutes=1000*60;
  var hours=minutes*60;
  var days=hours*24;
  var years=days*365;
  var y=date/years;
  </code></pre>
  
  <p>t should give me exactly 42 years but its giving me decimal as well. Y so??</p>
  
  <p>Any help will be appreciated guys.</p>
  
  <p>Thanks</p>
  
  <p>Anand</p>