I have an odd problem and I am wondering if anyone can replicate it or knows of a solution:
I am creating a date object.
I add x number of days to this object to create another date object:
newdate = new Date(olddate.getTime() + (nfield.value)*24*60*60*1000)
This works perfectly until the old date is the 31st of December (any year). If I add to this date, the result is always one day extra.