Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining the End of the Month
Message
From
19/03/1999 17:52:41
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
18/03/1999 11:05:52
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00199069
Message ID:
00200030
Views:
36
>Stephen,
>
>
>>*-- last day of the current month
>>mdate2=gomonth(date(),1)-day(date())
>
>This would go wrong when the date = jan 31
>
>this should be:
>mdate2=gomonth(date()-day(date())+1,1)-1
>
>Regards, Walter

Right on the spot Walter. I got it just as short...

LastOfMonth=gomo(date, 1) - day(gomo(date,1))

Don't we all love these date one-liners :)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform