I receive this datetime 190522000000Z (ISO8601). I need to get servers local datetime to ISO8601 and see the diference in number of days. I tried some php functions but am lost - this post was helpful but did not work for my case How to calculate the difference between two dates using PHP?
//now on local server
$datetime1 = date('c');
$now = $datetime1 ;
$your_date = '190522000000Z';
$datediff = $now - $your_date;
error_log(print_r( round($datediff / (60 * 60 * 24)) , true));
I'm unable to get how many days have passed (the difference)