title: Compare 24 hours format times in moment.js
body: <p>How to compare two times which are in 24 hours format. I have tried below lines of code? </p>
  
  <pre><code>     $("#dd_start_timing, #dd_end_timing").on('keyup change keydown', function() {
          var DutyDayStartTime = $("#dd_start_timing").val().trim();// 13:05
          var DutyDayEndTime = $("#dd_end_timing").val().trim(); // 13:05
          if(DutyDayStartTime.minute() === DutyDayEndTime.minute())
          {
            alert("cannot be same");
          }
  });
  </code></pre>
  
  <p>I am using moment.js library. It throws error message "DutyDayStartTime.minute is not a function". Please help me how will I compare two times in moment.js </p>