title: How to Calculate Total Time in HH:MM Format in Jquery For Data & Time in seperate text-boxes
body: <p>Suppose I have 5 text-boxes respectively For Start Date, Start Time, End Date, End time  &amp; another Text box For Showing the Result all inside a Grid View in asp.net. I want to Calculate the difference between the two dates along with the time also for key up event of the End time text box &amp; show it into the text box which is used for Showing Result.</p>
  
  <p>My Input will be like this:</p>
  
  <p>For Date 20/08/2014
  For Time : 17:55</p>
  
  <p>I am new to j query &amp; unable to search the exact  or similar solution for my problem. Can any one help here?
  Thanks in advance. </p>
  
  <pre><code>var start = $('#start_date').val();
  var end = $('#end_date').val();
  
  // end - start returns difference in milliseconds 
  var diff = new Date(end - start);
  
  // get days
  var days = diff/1000/60/60/24;
  
  Example
  
  var start = new Date("2010-04-01"),
      end   = new Date(),
      diff  = new Date(end - start),
      days  = diff/1000/60/60/24;
  
  days; //=&gt; 8.525845775462964
  </code></pre>
  
  <p>Got Above Solution from stack overflow itself but this is not like exactly mine. i have date &amp; time both in separate text boxes.</p>