Forum Moderators: open
nonetheless.
the problem, for which any help will be gratefully recieved.
the function
function dayOfYear(osD,selD){
var theMonth;
todayTime = selD.getTime();
startTime = osD.getTime();
DoY = parseInt((todayTime - startTime))/86400000;
if (DoY%1!= 0){
DoY = DoY-(DoY%1);
}
theMonth = selD.getMonth()
DoY += 1;
return DoY;
}
the idea of the function is to get the number of days between osD and selD.
sadly when selD is in the nov-mar bracket (winter time clocks) the DoY gets one day out.
WHY!?
[developer.irt.org...]