Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: irt.org FAQ Knowledge Base Q1142

Feedback on: irt.org FAQ Knowledge Base Q1142

Sent by Feng on October 17, 2001 at 16:37:14: - feedback #3253

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?


Sent by Damian Johnson on Friday April 13, 2007 at 12:33:47 - feedback #4440

Worth:
Worth reading

Length:

Technical:

Comments:
i tried calaculation 180 day the calcumaltion is off by a couple if days




Sent by rohit marathe on Wednesday April 18, 2007 at 00:34:22 - feedback #4450

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
Nice script and is very useful...




Sent by Erik on Friday June 15, 2007 at 09:37:52 - feedback #4707

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!




Sent by Erica on Thursday September 27, 2007 at 15:58:28 - feedback #5065

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???






Sent by Ray on Wednesday October 10, 2007 at 15:33:12 - feedback #5092

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.





Sent by Kailas on Friday July 18, 2008 at 08:06:48 - feedback #5299

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...




Sent by Peter on Tuesday August 05, 2008 at 13:03:54 - feedback #5305

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.




Sent by Israel on Tuesday January 20, 2009 at 19:47:39 - feedback #5353

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!




©2018 Martin Webb