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