Wordpress last edited time code script
Posted: October, 31 2008Display the last edited date and time in Wordpress. To show your users when the last time you updated your Wordpress article was, simply enter the following code where you would like the time code to be displayed.
Key to values
F represents the Month (word)
d represents the Day (numerical)
Y represents the Year (numerical)
<?php the_modified_time('F') ?>,
<?php the_modified_time('d'); ?>
<?php the_modified_time('Y'); ?>
You can see this code working at the bottom of this post.
Non Wordpress sites
You can use the following code to display the last edited date and time on a none wordpress but php driven site.
<?php date_default_timezone_set("EST"); echo date ("Y-m-j h:i:s A (T)", getlastmod()); ?>
Related Articles
- 25.02.10: Linux CPU States and there meaning (0)
- 24.05.09: How to view website on a shared IP (0)
- 22.09.09: Reset Session storage options in Magento (0)
- 10.10.09: How to clear dashboard stats in magento (0)
- 11.06.09: Changing default / index page via htaccess (0)







Comments RSS Feed




thank you ,,
Go to Top of the page