Answers for "php get only date from timestamp"

PHP
1

php extract time from datetime

$time = '2013-01-22 10:45:45';

echo $time = date("H:i:s",strtotime($time));
Posted by: Guest on July-01-2020
0

php datetime from timestamp

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

Code answers related to "php get only date from timestamp"

Browse Popular Code Answers by Language