Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculating age...
Message
 
À
14/12/1999 15:34:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00303614
Message ID:
00303641
Vues:
15
Have a FAQ on this. Click my name to access it.

>Will this always work?
>
>age = int((date() - ctod(dtoc(birthday)) / 365.25)
>
>That is to say, will the age always look right to a user?
>
>I'm concerned about people born march 1 of a leap year and people born 12/31/{year before leap year}
>
>Is there a better way to calculate the age?
>
>Thanks! :-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform