Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Working Out Someones Age

Status
Not open for further replies.

minckle

Programmer
Mar 17, 2004
142
0
0
GB
Is there a function/standard way of working out the age of someone if you know there Date of Birth??

if so, can you let me know where to find it??


thanks
 
Looking up "date/time routines" in the Delphi help index (I'm using Delphi 6) gives a whole list of routines you can use to manipulate dates. The logic of what you are trying to achieve is simple so, as a learning exercise, try writing your own version with the routines available to you in Delphi 5.

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
...and post here so that we can give you feedback on the accuracy and robustness of your code.

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top