<?php $string = "24/04/2017 15:45pm"; $d = DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s', $string, new DateTimeZone("UTC"))->setTimezone(new DateTimeZone("Europe/London")) ->format("d/m/Y H:i:s"); print_r($d);
You have javascript disabled. You will not be able to edit any code.