Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining the End of the Month
Message
 
 
To
18/03/1999 01:26:22
Fida Shamsoodeen
Combined Systems (Pty) Ltd
Centurion, South Africa
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00199069
Message ID:
00199074
Views:
15
>Can anyone please tell me if you have created a class or
>a function that can return the End of the month date, including
>determining the leap year..

In the faq there is this function.
****
2. The last day of the month:
ldEndMonth = GoMonth(ldMyDate - Day(ldMyDate) + 1, 1) - 1
****

The basic idea is to skip to the next month. Go to the first day of that month then subtract 1.
Previous
Reply
Map
View

Click here to load this message in the networking platform