title: jQuery new Date() not working in Safari
body: <p>The function below calculates the age based of the given parameters.</p>
  
  <pre><code>var now = new Date();
  var past = new Date(select_year + "-" + select_month + "-" + select_day); 
  var nowYear = now.getFullYear();
  var pastYear = past.getFullYear();
  var age = nowYear - pastYear;
  </code></pre>
  
  <p>It works perfectly in Chrome. </p>
  
  <p>But when I switch over to Safari, the following line says <code>Invalid Date</code>:</p>
  
  <p><code>var past = new Date(select_year + "-" + select_month + "-" + select_day);</code></p>
  
  <p>I'm assuming it is failing to reconstruct the date.</p>
  
  <hr>
  
  <p>Is there a way to fix this?</p>