title: Check date and time comparison in Javascript
body: <p>I have <code>4 textboxes</code> for date and with each <code>textbox</code> there is <code>dropdownlist</code> for time.</p>
  
  <p>Now what I want is,</p>
  
  <blockquote>
    <p>For each textbox date can be same but the timing should not be equal in all the dropdownlist.</p>
  </blockquote>
  
  <p>for ex:-</p>
  
  <p>if in each textbox the date is</p>
  
  <pre><code>textbox1: 08/02/2016
  textbox2: 08/02/2016
  textbox3: 08/02/2016
  textbox4: 08/02/2016
  </code></pre>
  
  <p>Timing should not be same, it should be</p>
  
  <pre><code>ddl1 = 9.00
  ddl2 = 10.00
  ddl3 = 11.00
  ddl4 = 12.00
  </code></pre>
  
  <p>What I tried is like below:-</p>
  
  <pre><code> function ValidateRecord() {
      var StrPriError = "";
      if (document.getElementById('TextBox1').value == document.getElementById('TextBox2').value || document.getElementById('TextBox3').value || document.getElementById('TextBox4').value) {
          if (document.getElementById('DrpTime').value == document.getElementById('DrpTime3').value || document.getElementById('DrpTime4').value || document.getElementById('DrpTime5').value) {
              StrPriError += "Dates and Time for RA Reminder cannot be same";
          }
      }
      if (StrPriError != "") {
          alert(StrPriError);
          return false;
      }
      else {
          return true;
      }
  }
  </code></pre>
  
  <p><strong>but it is not working even if I add different time. kindly suggest</strong></p>
  
  <p>Also, see the screenshot of the HTML</p>
  
  <p><a href="https://i.stack.imgur.com/Mh3am.png" rel="nofollow"><img src="https://i.stack.imgur.com/Mh3am.png" alt="Image1"></a></p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>The date format will be <code>dd/MM/yyyy</code></p>