Thread
:
Calculating an Age from Date of Birth
View Single Post
09-21-2007, 07:14 PM
#
2
(
permalink
)
Village Idiot
Wizard
Join Date: Sep 2007
Posts: 1,298
Thanks: 17
you could just do this
PHP Code:
function
bday
(
$day
)
{
$age
=
time
() -
$bday
;
$years
=
date
(
"Y"
,
$age
);
return
$years
;
}
Village Idiot
View Public Profile
Send a private message to Village Idiot
Find More Posts by Village Idiot