Page Last Updated Tutorial

PHP Code

To format the date for the PHP code (for use on .php pages), use the chart at PHP.net.

<?php
echo 'Page Last Updated: '.date('F j, Y, g:i a'getlastmod());
?>

SSI Code

To format the date for the SSI code (for use on .shtm or .shtml pages), use the chart at HTML Goodies.

Page Last Updated:
<!--#config timefmt="%B %d, %Y, %l:%M %p" --><!--#echo var="LAST_MODIFIED"-->

HTML Code

To format the date for the HTML code (for use on .htm or .html pages), use the chart at HTML Goodies.

Page Last Updated:
<!--webbot bot="Timestamp" S-Type="REGENERATED" S-Format="%B %d, %Y, %l:%M %p" -->

Page Last Updated Example

Page Last Updated: May 20, 2016, 8:36 pm


Page Last Updated Example Code

<?php
echo '<p>Page Last Updated: '.date('F j, Y, g:i a'getlastmod()).'</p>';
?>