title: Is this a good way to check for a valid date in JavaScript?
body: <p>Please correct or explain how my over-simplification is incorrect as I am not a JavaScript expert.</p>
  
  <p>But I just need to know if an object is a valid date.  This will only come from user input (ie, text box).</p>
  
  <pre><code>var is_valid_date = function(date) {
      try {
          var d = new Date(date);
          return true;
      }
      catch(e) {
          return false;
      }
  }
  </code></pre>