Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a function that returns the number of days in a
Message
From
10/11/2000 21:45:21
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
10/11/2000 16:54:47
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00440276
Message ID:
00440655
Views:
16
>>>lnDaysInMonth = GOMONTH(ldDate,1)-ldDate
>>
>>You do need those two lines, because if you're on Jan 31st, gomo(jan31,1) will give you February 29th (assume a leap year), and {feb 29}-{jan 31} would give you 29 instead of 31. Therefore, it's only safe to go back to 1st day of the month first.
>
>
>Geez, didn't anybody read my own reply to myself on this... <g>

I just didn't see how long the thread was, and when I clicked on "Send", there it was... someone else already corrected this (including yourself :).

That's the way it goes around here, the little tricks around date calculations are everyone's favorite sport, and a question like this is sure to create a looooooong thread. Did you notice how many people actually tried to create one-liners? That's another sport :)

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