Answers for "to display date in php"

PHP
0

print date in php

// Change the line below to your timezone!
date_default_timezone_set('Australia/Melbourne');
$date = date('m/d/Y h:i:s a', time());
Posted by: Guest on September-25-2021
0

displaying dates using php code

// Output — 11:03:37 AM
echo date('h:i:s A');
 
// Output — Thursday, 11:04:09 AM
echo date('l, h:i:s A');
 
// Output — 13 September 2018, 11:05:00 AM
echo date('d F Y, h:i:s A');
 
?>
Posted by: Guest on May-16-2021

Browse Popular Code Answers by Language