Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Month() needs help
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00405422
Message ID:
00405430
Views:
14
Hi Becky,

The last day of the previous month is

dLastDay = date() - day(date())

The first day of the previous month is

dFirstDay = dLastDay - day(dLastDay) + 1

Now you can print all of the transactions between dFirstDay and dLastDay

Cheers,

Andrew




>vfp 3.0
>
>Hello All,
>
>I am trying to do a batch print for example
>
>on the 15th of the month, I would like to print all
>records entered for the previous month.
>
>Have been trying to use month() function with no luck.
>
>Any thoughts? Thanks and have a good day.
>
>Becky


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Previous
Reply
Map
View

Click here to load this message in the networking platform