I am having trouble with subtracting times in PHP.
My times are:
$row['exp'] = 2017-03-31
and date('Y-m-d') = 2017-03-10 (today)
$datetime1 = strtotime($row['exp']);
$datetime2 = strtotime(date('Y-m-d'));
$secs = $datetime1 - $datetime2;// == <seconds between the two times>
$days = $secs / 86400;
echo $days;
My result is:
36520.958333333333