Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any function for check if its a leap year ?
Message
De
21/02/2003 16:07:42
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00756383
Message ID:
00756417
Vues:
19
How's this expression?

IIF((m.nYear%100)==0, (m.nYear%400)==0, (m.nYear%4)==0)

This of course won't be accurate calendar years prior to 1582. Though if you're only concerned with dates after mid-20th century then this should generally work.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform