Feedback on: irt.org FAQ Knowledge Base Q1142
Worth:
Worth reading
Comments:
It won't work with "03/01/2001 - 2 days". It will return "02/30/2001". How should we solve this problem?
Worth:
Worth reading
Length:
Technical:
Comments:
i tried calaculation 180 day the calcumaltion is off by a couple if days
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
Nice script and is very useful...
Worth:
Worth reading
Length:
Just right
Technical:
Not technical enough
Comments:
This is a better way... just let the javascript engine determine the values...
var _date = new Date();
var _val = _date.setDate(_date.getDate()+16); // now + 16 days
alert(_date);
have fun!
Worth:
Worth reading
Length:
Technical:
Comments:
I tried this in my Acrobat form and it didn't work. I'm trying to get a field to look at the Date field and add one day. Any advice???
Worth:
Worth reading
Length:
Just right
Technical:
Just right
Comments:
The proposed solution fails when adding, say, 5 days to the date October 31, 2007. I suspect an issue when switching between Daylight Savings to/from Standard Time.
Erik was correct with his alternate solution.
Worth:
Very worth reading
Length:
Just right
Technical:
Too technical
Comments:
hi
Really nice one . i was looking for long hrs how to do that....its helped me a lot...
Worth:
Not worth reading
Length:
Just right
Technical:
Not technical enough
Comments:
Not daylight savings friendly - not all days are 24 hours in length - use Erik's code instead.
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
It is just the precise answer... I wonder why the Javascript programmers didn't think of an operator overload for this function.
Yet, this function is really simple to implement and understand... Thanks a lot!