如何找出入住日期和退房日期之间的日期差异。
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);
}