Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find last date in a month
Message
De
22/01/2007 20:05:34
Mike Yearwood
Toronto, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01187758
Message ID:
01187950
Vues:
18
>>Borislav,
>>
>>Try with {^2006/01/30}
>>
>>Since every month has a first, go back to the first of the month, add one month, subtract one day
>>
>>?gomonth(m.d+1-day(m.d), 1) -1
>>
>
>
>After Dragan's posting I realize that (That happens when I post messages only from top of my memory) Check my answer to Dragan for correct function (I use it very successful :-))

THAT is one of the reasons why it pays to have a LastDayOfMonth function. Even something this simple can cause mistakes. Encapsulate the knowledge in that function once and for all.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform