title: check whether the date entered by the user is current date or the future date
body: <p>I was browsing through the net to find a javascript function 
  which can check whether the date entered by the user is current date or the future date but i didn't found a suitable answer so i made it myself.Wondering If this can be achieved by one line code.</p>
  
  <pre><code> function isfutureDate(value) 
      {    
      var now = new Date;
      var target = new Date(value);
  
      if (target.getFullYear() &gt; now.getFullYear()) 
      {
          return true;
      }
      else if(target.getFullYear() == now.getFullYear()) 
      {
      if (target.getMonth() &gt; now.getMonth()) {
      return true;
      } 
      else if(target.getMonth() == now.getMonth())
      {
      if (target.getDate() &gt;= now.getDate()) {
          return true;
      }
      else
      {
          return false
      }
      }
  
  
      }
  
     else{
      return false;
      }
  }   
  </code></pre>