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:
00457320
Views:
21
>>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
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform