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"; 11/24/24 2:01:48 11/24/24 2:01:48 Today is 24 November 2024 time is 2:01 am
finished date_time.php