12

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.

18

You're looking for the dateUpdated property.

{{ entry.dateUpdated }}
| improve this answer | |
  • This works, thanks! I actually just checked the Database and found the field. – Bill Columbia Jun 18 '14 at 19:13
6

Take a look at the EntryModel. The model has a dateUpdated property which will exactly output what you want:

{{ entry.dateUpdated }}
| improve this answer | |
0

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 }}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.