PHP display date: year, month, day, time, etc.
Just a few quick functions to display the date in PHP.
Copy this code and paste it in your HTML
<?php echo date("l"); ?> // Day of the week, ie: Monday
<?php echo date("Y"); ?> // Year, ie: 2012
<?php echo date("F j, Y, g:i a"); ?> // Date and time, ie: March 10, 2001, 5:16 pm
URL: http://www.cannedbanners.com
Report this snippet
Comments
Subscribe to comments