Answered
count the days between two modules excluding Sundays
var nDiffDays = "";
var dd = this.getField("data1").value;
var rd = this.getField("data2").value;
if(dd.length && rd.length)
{
var d1 = util.scand("dd/m/yy", dd);
var d2 = util.scand("dd/m/yy", rd);
if(d1 && d2)
nDiffDays = Math.floor((d2 - d1)/86400000) +1;
}
event.value = nDiffDays;from this code I have to exclude Sunday, so as to have a count of the days without Sunday. Thanks
