date_time.php example php source code print date("m/d/y G:i:s", time()); echo " \n"; print date("m/d/y", time()); echo " \n"; print date("G:i:s", time()); echo " \n"; print "Today is "; print date("j F Y", time()); echo " \n"; echo "time is ".date("g:i a", time())."
\n"; echo "finished date_time.php
\n"; 08/29/25 1:11:27 08/29/25 1:11:27 Today is 29 August 2025 time is 1:11 am
finished date_time.php