<?php $utc = new DateTimeZone('UTC'); $london = new DateTimeZone('Europe/London'); $test1 = new \DateTime('2018-01-31', $utc); $test2 = new \DateTime('2018-04-08', $london); $dateDiff = $test1->diff($test2); echo $dateDiff->y;
You have javascript disabled. You will not be able to edit any code.