title: Find out date difference JavaScript
body: <p>How to find out date difference between check-in and check-out date. </p>
  
  <pre><code>function Checkdate(id)
  {
    var txtCheckinNew = $(id).parents("table").find("#[id$=TransferDate]").val(); //04/30/2013
    var txtCheckoutNew =$(id).parents("table").find("#[id$=TransferDate1]").val(); //05/03/2013
    var diff =   Date(txtCheckoutNew) - Date(txtCheckinNew);
    alert(diff);      
  }
  </code></pre>