Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining the End of the Month
Message
De
26/03/1999 02:03:13
Walter Meester
HoogkarspelPays-Bas
 
 
À
25/03/1999 16:40:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00199069
Message ID:
00202256
Vues:
16
Andrus,

>>mdate2=gomonth(date()-day(date())+1,1)-1

>I want to say that this last code is also wrong:

>it will not work for year 9999 which I use
to mark special dates.

>Is it possible to have a simple function which works in 9999 also ?

It only goes wrong the the date is in the last mont of the year 9999

to solve this problem you could say this:

mdate2=IIF(date() > {30-11-9999},{31-12-9999},gomonth(date()-day(date())+1,1)-1)

Walter,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform