<?php $date = new DateTime("now"); echo $date->format('Y-m-d\Th:i:s:u \G\M\TO'); echo "\n---\n"; $input = '2020-01-07T11:55:34:438 GMT+0600'; echo $input; echo "\n---\n"; $date = DateTime::createFromFormat('Y-m-d\Th:i:s:u \G\M\TO', $input); echo $date->format('Y-m-d h:i:s'); echo "\n===\n"; var_dump($date);
You have javascript disabled. You will not be able to edit any code.