php mysql datetime
snippet in php

php mysql datetime

user8983

date("Y-m-d H:i:s")

<?php $date = new DateTime('2000-01-01'); echo $date->format('Y-m-d H:i:s'); ?>

user1150


<?php
$date = new DateTime('2000-01-01');
echo $date->format('Y-m-d H:i:s');
?>