Thursday, March 12, 2009

Find the Age?

In php, you can use the following script to find the age.

$age = floor((time() - strtotime($dob))/31556926);

where $dob is date in any format.

No comments: