title: How to get difference from 24 hours time format?
body: <p>I have two time(getting from Time Picker)</p>
  
  <pre><code>Time1=22:10
  Time2=05:10
  </code></pre>
  
  <p>total time difference  I need  as <code>07:00</code></p>
  
  <p>For example from <code>10:10 pm</code> to <code>05:10 am</code> there is a difference of <code>7</code> hours. Like this same way am asking how to find if it is in a 24 hours format?</p>
  
  <p>How can I achieve it? In 12 hours case I am fine. But I do not know how to do it in 24 hours format?? It is a web application.</p>