Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subtract from a date by months and maintain the day
Message
From
14/06/2005 10:58:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Subtract from a date by months and maintain the day
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01023136
Message ID:
01023136
Views:
65
Is there any simple functions out there that will allow you to add or subtract to a date and maintain the day without adjusting for months with 31, 30 29, or 28 days to throw off the day?

I need to substract 12 months (or a specific number of months) from a date and compare to another and do until it is lower than the other, but I need it to maintain the change date's day and move back whole months and roll the year as it passes. I can write a little function to do this, but I don't want to re-invent the wheel if there is something already out there which does this.
``` Appreciate a normal day, it is always better than a bad one ```

Kev
Next
Reply
Map
View

Click here to load this message in the networking platform