PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: John Montenigro on January 25, 2011, 01:04:51 AM

Title: Looking for AddDaysToDate() function
Post by: John Montenigro on January 25, 2011, 01:04:51 AM
Regarding an old FF2 thread: http://www.planetsquires.com/protect/forum/index.php?topic=1731.msg14464#msg14464 (http://www.planetsquires.com/protect/forum/index.php?topic=1731.msg14464#msg14464)

In reply #1, jcmatt mentions a function called AddDaysToDate()

I was wondering if jcmatt is still around, and/or if that routine is available. I'm in a learning curve on the DateTimePicker, and this would be a very helpful, complementary routine that would show me how to extend what I'm in the midst of learning...

Any help?
Thanks!
-John

[Added]I should clarify: I have a routine but it's all rather clunky string manipulations from my early days. I'm hoping the function mentioned above is more sophisticated, so I can learn to use the SYSTEMTIME structure and QUAD math...
Title: Re: Looking for AddDaysToDate() function
Post by: Rolf Brandt on January 25, 2011, 09:59:04 AM
Here is a thread and include file that has a complete set of date / time routines. The thread is in German, but the include file is easily understandable (except the German holiday part maybe).

This DateAdd Function works like in VB, you can add days, hours, minutes, etc.

http://www.vb-fun.de/cgi-bin/forumarchiv.pl?archiv=0100&ID=1&action=zeigeseite&nummer=31432

If it is just days you want to add look at this thread:
http://www.planetsquires.com/protect/forum/index.php?topic=2686.msg20254#msg20254
Title: Re: Looking for AddDaysToDate() function
Post by: John Montenigro on January 25, 2011, 11:49:49 PM
Thanks Rolf! I'll dive into those links in the morning!
-John
Title: Re: Looking for AddDaysToDate() function
Post by: Rolf Brandt on January 26, 2011, 09:26:19 AM
And here:
http://www.planetsquires.com/protect/forum/index.php?topic=2686.msg20799#msg20799
Title: Re: Looking for AddDaysToDate() function
Post by: John Montenigro on February 02, 2011, 01:43:32 PM
Thanks for the help! I've got the referenced routines installed now, and will be testing this week.

-John