Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining the End of the Month
Message
 
À
18/03/1999 01:26:22
Fida Shamsoodeen
Combined Systems (Pty) Ltd
Centurion, Afrique du Sud
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00199069
Message ID:
00199074
Vues:
23
>Can anyone please tell me if you have created a class or
>a function that can return the End of the month date, including
>determining the leap year..

In the faq there is this function.
****
2. The last day of the month:
ldEndMonth = GoMonth(ldMyDate - Day(ldMyDate) + 1, 1) - 1
****

The basic idea is to skip to the next month. Go to the first day of that month then subtract 1.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform