function taxMonese(formula_value){
var num = new Number();
var dateDiffs;
var start_date="20170212";
var end_date="20170619";
dateDiffs=DateDiff(start_date,end_date);
alert("天数:"+dateDiffs);
}
//根据起始日期和结束日期计算天数
function DateDiff(sDate1, sDate2){
var oDate1, oDate2, iDays
oDate1 = new Date(sDate1.substring(4,6) + '-' + sDate1.substring(6) + '-' + sDate1.substring(0,4));
oDate2 = new Date(sDate2.substring(4,6) + '-' + sDate2.substring(6) + '-' + sDate2.substring(0,4));
iDays = parseInt(Math.abs(oDate1 - oDate2) / 1000 / 60 / 60 /24);
return iDays;
}