Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Last date in month
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00388597
Message ID:
00388608
Vues:
8
>Does anyone have a simple function that returns the last date available in a given month?

I think it's been posted before, but you can try this:

dv = date value to try

dv = DATE()
?DAY(GOMONTH(dv-DAY(GOMONTH(dv,1))+1,1)-1)

Gives you 31 for date value of 7/5/2000.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform