Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Go to the 1st day of the prior month
Message
 
 
À
20/07/2010 16:14:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows 7
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01473185
Message ID:
01473191
Vues:
60
>Will someone share with me their function to < go to the 1st day of the prior month> (from any date)? Keep in mind that I am stuck in the 90's (VFP7).
>
>Thanks, Randy

Try
ldDate = date() && date parameter

ldPriorDate = gomonth(m.ldDate - day(m.ldDate) + 1,-1)
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform