ichimonban
Custom Title
How do I display the age of a row instead of the create or modified on date itself.
ie "28 days" instead of "05/21/2014" ...
I found this php but am not clear how to implement it in the date element to get the result I need.
[
$nowdate=strtotime("{table___element}");
$thendate=strtotime("today");
$datediff=($thendate-$nowdate);
$diff=round($datediff/86400);
return$diff;
]
Regards
ie "28 days" instead of "05/21/2014" ...
I found this php but am not clear how to implement it in the date element to get the result I need.
[
$nowdate=strtotime("{table___element}");
$thendate=strtotime("today");
$datediff=($thendate-$nowdate);
$diff=round($datediff/86400);
return$diff;
]
Regards