title: jQuery function to compare date with current date
body: <p>i am entering date of birth in form by entering date in separate text box ,selecting year from drop down and entering year in text box. Now i want to check that entered date must not be greater that current date in jquery. Please help how? </p>
  
  <pre><code>var CurrentMonth = date.getDate() + '/' + date.getMonth() + '/' + date.getFullYear();
      var SelectedDate = $('[id$=spDate]').val() + '/' + $('[id$=drpMonth]').val() + '/' + $('[id$=txtYear]').val();
      if (CurrentDate &gt; SelectedDate) {
          return false;
      } 
  </code></pre>