Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number of one month days
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Divers
Thread ID:
00675628
Message ID:
00675682
Vues:
8
>>Hi all,
>>
>>Which function have to employ to know the number of one month days?
>>Example 01/01/2002 gives 31 days
>>Thank you in advance for the assistance brought....
>>
>>bernhart
>
>Hi,
>in FoxPro you can use
>
GOMOTH(myDate,1) - myDate
>in other languages you have similar commands to get date contained same day of next month

It would return incorrect result in some cases. For example
myDate = {^2002/01/31}
? GOMONTH(myDate,1) - myDate   && returns 28 instead of 31
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform