Age of record in days since added
Posted: Sat Apr 18, 2015 11:11 am
I am trying to write report that will give me the age of the record in days. My report looks like this so far
$row .= '<tr>
<td>'.$joined_date.'</td>
<td>'.$registration_number.'</td>
<td>'.$name.'</td>
<td>'.$city.'</td>
<td>'.$AgeDate.'</td>
</tr>';
I need $AgeDate to show the age of the record in days
Joined date is this format: 2015-04-10
date_default_timezone_set('Africa/Johannesburg');
$joined_date= date("Y-m-d ");
Any suggestions will be greatly appreciated
$row .= '<tr>
<td>'.$joined_date.'</td>
<td>'.$registration_number.'</td>
<td>'.$name.'</td>
<td>'.$city.'</td>
<td>'.$AgeDate.'</td>
</tr>';
I need $AgeDate to show the age of the record in days
Joined date is this format: 2015-04-10
date_default_timezone_set('Africa/Johannesburg');
$joined_date= date("Y-m-d ");
Any suggestions will be greatly appreciated