Looking for AddDaysToDate() function

Started by John Montenigro, January 25, 2011, 01:04:51 AM

Previous topic - Next topic

John Montenigro

Regarding an old FF2 thread: 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...

Rolf Brandt

#1
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
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

John Montenigro

Thanks Rolf! I'll dive into those links in the morning!
-John

Rolf Brandt

Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

John Montenigro

Thanks for the help! I've got the referenced routines installed now, and will be testing this week.

-John