Answers for "php 8.1 capture time from date string"

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 code to display current date and time in different formats

echo date('Y.m.d H:i:s');
Posted by: Guest on August-11-2020

Browse Popular Code Answers by Language