the_modified_time

TIME/DATE TAG

What It Does

Displays the time and date that a post or page was last modified (not created). To display the time and date that a post was created, you would use the_time. the_modified_time must be used within The Loop.

If a custom display format is not used, the date will be shown in the format as specified in the admin panel at Administration > Settings > General.

Code

<?php the_modified_time(); ?>

the_modified_time can be customized to display the time in a variety of different ways. For more information, see PHP Date.

Example

<?php the_modified_time(‘F j, Y’); ?>

The above example will display the time in this format:

March 20, 2009

Again, refer to PHP Date for examples of the many ways you can display the date.