Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number of days in a month
Message
De
10/10/1997 00:35:17
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00053634
Message ID:
00054005
Vues:
34
>>Is there a function to get the number of days in a month.
>>eg. the number of days in any month of any year.
>>
>>Thanks
>>Andrew
>
>* Let FoxPro do the work!
>* Subtract a Day from the Next Months First Day!
>* Leap Year taken care of!
>dWHEN= DATE()
>? DAY(CTOD(str(Month(dWHEN)+1)+"/01/"+Alltrim(SUBSTR(STR(Year(dWHEN)),7,4)))-1)
>
>Ed B

Be careful, because this depends on the SET DATE setting.

Vlad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform