Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subtract from a date by months and maintain the day
Message
 
À
14/06/2005 10:58:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
01023136
Message ID:
01023137
Vues:
13
This message has been marked as a message which has helped to the initial question of the thread.
>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.

Check GOMONTH() function.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform