Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Last day of a month
Message
 
 
À
05/11/1999 18:23:02
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00287143
Message ID:
00288182
Vues:
20
My function is....

FUNCTION EndMonth
LPARAMETERS tnMonth, tnYear
IF PCOUNT()<1
tnMonth = MONTH(DATE())
ENDIF
IF PCOUNT()<2
tnYear = YEAR(DATE())
ENDIF
IF m.tnMonth=12
RETURN DATE( m.tnYear, 12, 31)
ELSE
RETURN DATE( m.tnYear, m.tnMonth+1, 1) - 1
ENDIF
ENDFUNC
Nikolay Petkov, nik@osf.bg
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform