Answers for "get date from datetime object in php"

PHP
2

Datetime to string php

<?php
$date = new DateTime('2000-01-01');
echo $date->format('Y-m-d H:i:s');
?>
Posted by: Guest on March-30-2020
0

get date from datetime object in php

<?php
$date = new DateTime('2000-01-01');
echo $date->format('Y-m-d H:i:s');
?>
Posted by: Guest on April-29-2021

Code answers related to "get date from datetime object in php"

Browse Popular Code Answers by Language