I'm using this code to return the number of days between two dates - today, and a date from the database:
$now = new DateTime("now");
$date2 = new DateTime($row[$CalendarField]);
$interval = $now->diff($date2);
$age = $interval->days;
How can I alter the code so that $age
returns a negative value for dates in the past?