blueberry_08 Posted October 21, 2013 Posted October 21, 2013 Hi, What code do I add so I can display the date I modified the page? Thanks a lot.
DaveP Posted October 21, 2013 Posted October 21, 2013 <?php echo $page->modified; ?> http://cheatsheet.processwire.com/ is your friend.
blueberry_08 Posted October 21, 2013 Author Posted October 21, 2013 Okay. Is there a way I can post it like F j, Y?
MatthewSchenker Posted October 21, 2013 Posted October 21, 2013 Greetings, As always, ProcessWire makes it easy! Here you go: <?php echo date("F j, Y", $page->modified); ?> Thanks, Matthew 1
adrian Posted October 21, 2013 Posted October 21, 2013 If you want other date/time formats, check out the PHP manual:http://php.net/manual/en/function.date.php
ryan Posted October 26, 2013 Posted October 26, 2013 As always, ProcessWire makes it easy! <?php echo date("F j, Y", $page->modified); ?> Or in this case, just PHP 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now