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:
00756549
Vues:
16
if day(date(nyear,3,1)-1)=29 it's a leap year

Peter

>>>>hello all
>>>>
>>>>is there any function for check if current year its a leap year ?
>>>>
>>>>txs
>>>
>>>If I remember correctly. If the year is divisible by 4 and it is not divisible by 100. By not divisible by 100 I mean the year 2000,2100,2200,.. are not leap years.
>>>
>>Einar,
>>
>>It's equally divisible by 400. 2000 was a leap year
>
>Lol I didn't correct myself fast enough. You are correct.
>As soon as I read your reply it made perfect sense that it was 400 and not 100.
Peter Cortiel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform