Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
End of the Month Calculation
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00457305
Message ID:
00457382
Views:
22
>>>How do I calculate the end of the Month for any given year and month?
>>

>>
ldDate = Date()
>>ldEOM = gomonth(ldDate-day(ldDate)+1,1) - 1
>It's even simpler for month and year
>
>lnYear = 2000
>lnMonth = 2
>ldEOM = Gomonth(Date(lnYear, lnMonth, 1),1) - 1
Hi Sergey,

This one is a real candidate to a FAQ :) Would you please add this info in FAQ section here?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform