php get ime from datetime string code example
Example: extract date from DateTime object php
<?php
$date = new DateTime('2000-01-01');
echo $date->format('Y-m-d H:i:s');
?>
<?php
$date = new DateTime('2000-01-01');
echo $date->format('Y-m-d H:i:s');
?>