title: JavaScript simple date validation
body: <p>I try to validate a date entered by the user. It must be today or a later date. How I can do that? </p>
  
  <p>Why the condition in the code below is <code>false</code>?</p>
  
  <pre><code> var today = new Date();
   var idate = new Date('02/09/2014');
  
   if(today &gt; idate) {
     alert('your date is big');
   }
  </code></pre>
  
  <p>If I set <code>today</code> then it is today's date and also I pass in <code>idate</code> then it is also today's date then how can I compare dates?</p>
  
  <p>Here is JSFiddle: <a href="http://jsfiddle.net/0osh0q8a/1/" rel="nofollow">http://jsfiddle.net/0osh0q8a/1/</a></p>