Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Days in month
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8
Divers
Thread ID:
01266644
Message ID:
01266672
Vues:
10
>Try with ldDate = {^2007/1/31}
>
>>Get the LastDay of this month:
>>
>>? GetLastDay({09/09/2006})
>>
>>
>>FUNCTION GetLastDay(ldDate)
>>RETURN DAY(GOMONTH(ldDate,1)-DAY(ldDate))
>>
Why I always forget February?
? GetLastDay(DATE(2007,1,31))

FUNCTION GetLastDay(ldDate)
LOCAL ldDate1
ldDate1 = GOMONTH(ldDate,1)
RETURN DAY(ldDate1-DAY(ldDate1))
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform