Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

calcul age php datetime

function get_age( $date ) { 
    $age = date('Y') - $date; 
   if (date('md') < date('md', strtotime($date))) { 
       return $age - 1; 
   } 
   return $age; 
} 
 
PREVIOUS NEXT
Tagged: #calcul #age #php #datetime
ADD COMMENT
Topic
Name
3+6 =