Browse posteets
About
Contact
Log In
Register
View: Get age from date
Get age from date
1 year ago
by
nox.freak
function
getAge
(
$date
)
{
list
(
$y
,
$m
,
$d
)
=
explode
(
"-"
,
$date
)
;
$age
=
date
(
"Y"
)
-
$y
;
if
(
date
(
"md"
)
<
$m
.
$d
)
{
$age
--;
}
return
$age
;
}
age
Embed
|
View source
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1288"></script>
0 comment
about "Get age from date"
Tags
age
Note
Takes a birth date and will spit out how old that person is.
0 comment about "Get age from date"