Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function to get the last day of month
Message
De
11/07/1997 19:31:43
 
 
À
11/07/1997 19:17:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00039619
Message ID:
00039621
Vues:
37
The easiest way I know:

lcDate=GoMonth(ldMyDate-day(ldMyDate),1)

This doesn't depend on SET CENTURY or SET DATE, it works for leap years, etc.

Vlad

>Base on a specific date, is there a function which will return the last date of the month?
>
>For example, I have 01/01/1997, I would like to have 31/01/1997.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform