title: Alert message if date and time is older than a value
body: <p>I have a form with a date and time field, the date field consists of 3 fields: <em>day</em>, <em>month</em> and <em>year</em>. And time field consists of 2 fields, <em>hour</em> and <em>minute</em>.</p>
  
  <p>I want to show an alert if the date is older than 2 months and 60 hours.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div class="container-date"&gt;
      &lt;div class="date_day"&gt;
          &lt;input type="text" maxlength="2" name="input_day" id="input_day" value=""&gt;
      &lt;/div&gt;
      &lt;div class="date_month"&gt;
          &lt;input type="text" maxlength="2" name="input_month" id="input_month" value=""&gt;
      &lt;/div&gt;
      &lt;div class="date_year&gt;
          &lt;input type="text" maxlength="4" name="input_year" id="input_year" value=""&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="container-time"&gt;
      &lt;div class="time_hour&gt;
          &lt;input type="text" maxlength="2" name="input_hour" id="input_hour" value=""&gt;
      &lt;/div&gt;
      &lt;div class="time_minute"&gt;
          &lt;input type="text" maxlength="2" name="input_minute" id="input_minute" value=""&gt;
      &lt;/div&gt;     
  &lt;/div&gt;
  </code></pre>
  
  <p>I can do it with one field only for date, but have now 3 fields that I need.</p>
  
  <p>I tried something like this:</p>
  
  <pre><code>jQuery(document).ready(function($){
  
      var day = $('#input_day');
      var month = $('#input_month');
      var year = $('#input_year');
  
      var today = new Date();
      var currentMonth = today.getMonth();
  
      month.on("input change", function() {
          if ((today.getMonth() + 11) - (this + 11) &gt; 4) {
              console.log('test');
          }
      });
  }); 
  </code></pre>