Answers for "convert datetime object to string 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

Code answers related to "convert datetime object to string php \"

Browse Popular Code Answers by Language