Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any function for check if its a leap year ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00756383
Message ID:
00756987
Vues:
18
This message has been marked as a message which has helped to the initial question of the thread.
>Jim it returns .T. for all the years ????
>
>
>>Akhan,
>>
>>Here's a UDF that skips the math stuff;
>>
>>
>>PROCEDURE IsLeapYear(tnYear)
>>
>>RETURN MONTH(DATE(tnYear,2,27) + 1 ) = 2
>>
Jim made a correction to his formula. It should be 28 instead of 27.
RETURN MONTH(DATE(tnYear,2,28) + 1 ) = 2
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform