Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


December 31st date problem.

happygeckohappygecko Member Posts: 2
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.

Sign In or Register to comment.