Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining the End of the Month
Message
De
19/03/1999 17:52:41
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
18/03/1999 11:05:52
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00199069
Message ID:
00200030
Vues:
30
>Stephen,
>
>
>>*-- last day of the current month
>>mdate2=gomonth(date(),1)-day(date())
>
>This would go wrong when the date = jan 31
>
>this should be:
>mdate2=gomonth(date()-day(date())+1,1)-1
>
>Regards, Walter

Right on the spot Walter. I got it just as short...

LastOfMonth=gomo(date, 1) - day(gomo(date,1))

Don't we all love these date one-liners :)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform