Trying to determine if there is a method for getting an entry's last modified date, preferably date-time. Gave a good look over the docs and some searching and couldn't find anything other than the original creation date. Thanks.
3 Answers
You're looking for the dateUpdated property.
{{ entry.dateUpdated }}
-
This works, thanks! I actually just checked the Database and found the field. Jun 18, 2014 at 19:13
Take a look at the EntryModel. The model has a dateUpdated property which will exactly output what you want:
{{ entry.dateUpdated }}
For anyone who is looking for an answer, noticed that this doesn't work without the date filter in craft 3:
{{ entry.dateUpdated|date('Y-m-d') }}
or date time:
{{ entry.dateUpdated|date }}