<p>You can <a href="https://craftcms.com/docs/templating/craft.entries#order" rel="nofollow">order</a> entries by <code>dateUpdated</code> in descending order and then get the first entry. You would use that entries <code>dateUpdated</code> field to show when the site was last updated.</p>

<pre><code>{% set entry = craft.entries.order( 'dateUpdated desc' ).first() %}
{{ entry.dateUpdated }}
</code></pre>

CC BY-SA 3.0
2016-05-24T22:11:20.950Z
As a side note to this answer when I needed to do this I had to change order to: .order('elements.dateUpdated desc')
John Moylan
CC BY-SA 3.0
2016-05-24T16:57:41.330Z
2016-05-24T16:57:41.330Z
Luke Pearce
<p>I would like to display the date that the site was last updated. This date is the same as the last entry added to a specific category. Thanks in advance.</p>

<templating><entries><updating>
How can I display dateUpdated for the most recent updated entry in a category?
# How can I display dateUpdated for the most recent updated entry in a category?

(Asked by: username_0 on 2016-05-24)

I would like to display the date that the site was last updated. This date is the same as the last entry added to a specific category. Thanks in advance.

**Tags:** templating, entries, updating


---

## 1 answers

### Answer by username_1 on 2016-05-24. Score: 2 | Accepted answer

You can order entries by dateUpdated in descending order and then get the first entry. You would use that entries dateUpdated field to show when the site was last updated.
{% set entry = craft.entries.order( 'dateUpdated desc' ).first() %}
{{ entry.dateUpdated }}

> **Comments:**
> **username_2**: As a side note to this answer when I needed to do this I had to change order to: .order('elements.dateUpdated desc')  

---

