标签:
function
GetDateDiff(startDate,endDate)
{
var
startTime =
new
Date(Date.parse(startDate.replace(/-/g,
"/"
))).getTime();
var
endTime =
new
Date(Date.parse(endDate.replace(/-/g,
"/"
))).getTime();
var
dates = Math.abs((startTime - endTime))/(1000*60*60*24);
return
dates;
}
标签:
原文地址:http://www.cnblogs.com/zhoumeng780/p/4774846.html