Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Go to the 1st day of the prior month
Message
 
 
To
20/07/2010 16:14:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows 7
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01473185
Message ID:
01473191
Views:
61
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform