Answers for "new timestamp new datetime format timestamp with php"

PHP
1

mysql timestamp format php

echo date("Y-m-d H:i:s", time());
Posted by: Guest on August-31-2021
0

php datetime from timestamp

$ts = 1171502725;
$date = new DateTime("@$ts");
Posted by: Guest on May-11-2021

Browse Popular Code Answers by Language