I have some DateTime like this 2019-10-04 07:58:00
, I need the difference between the two date to be returned in minutes.
$current = strtotime(date("Y-m-d"));
$date = strtotime(date('Y-m-d',strtotime($old_date)));
$datediff = $date - $current;
Thanks in advance.