Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a function that returns the number of days in a
Message
De
10/11/2000 21:45:21
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
10/11/2000 16:54:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00440276
Message ID:
00440655
Vues:
26
>>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform