Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is best way to calculate age
Message
De
20/09/2006 16:51:23
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01155605
Message ID:
01155748
Vues:
36
>>We need totals of clients by age bracket. What is the best way to calculate the age? Right now, we are using:
>>
>>INT((DATE() - a.dob) / 365)
>>
>>But that doesn't take into consideration leap years (which could be significant for someone over 90 years old). Any suggestions? Should I just use:
>>
>>INT((DATE() - a.dob) / 365.25)
>>
>>Or is there a better (more accurate) way?
>>
>>Thanks,
>>Doug

What makes my code "* Copyright.........: (c) Jzanus, LTD, 2004"??? What is a copyright? Who is Jzanus LTD?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform