Answers for "get only time from datetime php"

PHP
0

only date in php

date('Y:m:d', strtotime($date))
Posted by: Guest on July-03-2020
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

Code answers related to "get only time from datetime php"

Browse Popular Code Answers by Language