- date_diff: documentation ( source)
- date_create: documentation ( source)
- date_create_from_format: documentation ( source)
- date_interval_format: documentation ( source)
- date_format: documentation ( source)
<?php
$sql_dob = date_create_from_format('Y-m-d','1969-03-09');
$today = date_create();
echo date_format($today,'Y');
$age = date_diff($today,$sql_dob);
echo date_interval_format($age,'y');
?>