title: Detect if string can be converted to date
body: <p>At the moment, i am using:</p>
  
  <pre><code>var d = new Date("March 7 2012");
  document.write(d.getMonth() + 1);
  </code></pre>
  
  <p>What if the date string is something weird like <code>No Date</code> i.e:</p>
  
  <pre><code>var d = new Date("No Date"); // anything which isn't recognisable as a date
  document.write(d.getMonth() + 1);
  </code></pre>
  
  <p>Here the output I get is <code>NaN</code></p>
  
  <p>How do I display a better message if something like this happens</p>