Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date manipulation
Message
 
 
À
06/10/2002 22:43:55
Ian Johnston
Computer Software Solutions
Woodland, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00708259
Message ID:
00708260
Vues:
10
>Is there an easy way to find the date that is the last day of the month nine full nonths from now ? i.e. 07/31/03 from any day in october this year.
Try
ldDate = DATE()
ldDate9m = GOMONTH(ldDate,9)
? GOMONTH(ldDate9m - DAY(ldDate9m )+1,1)-1
* or
? GOMONTH(ldDate - DAY(ldDate )+1,10)-1
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform