Can you tell me what is wrong with this code? I am trying to get the date difference in minutes.
$now prints ok
$date1 prints ok
I get blank for $interval
$date1 is in the same format that I will be getting from mysql database.
$now = date("Y-m-d H:i:s");
$date1 = date('2018-04-15 00:05:00');
$interval = date_diff($now, $date1);