title: How can we get the difference of date days (current date and future date) through Java script
body: <p>We would like make some changes of my Check-in and Check-out dates, like if we select two dates (Check-in and Check-out), we just want to store the difference of days.for ex :- 16/02/2012 (check - in) and 18/02/2012 (check out), the difference of the dates is 2 days, we just want to store this difference in Text field called "Nights"(2 Days).</p>
  
  <p>We are using JavaScript (datepicker codes) for getting check in/out dates.</p>
  
  <p>Thanks </p>
  
  <p>Rod</p>