<pre><code>{% if entry.postDate &gt; now|date_modify("-1 month") %}
    {# Output #}
{% endif %}
</code></pre>

CC BY-SA 3.0
2016-04-29T11:09:46.890Z
2016-04-29T11:09:46.890Z
darylknight
<p>How can I check if an Entry was posted less than a month ago?</p>

<entry><datetime><postdate>
How do I check if an Entry is new?
# How do I check if an Entry is new?

(Asked by: username_0 on 2016-04-29)

How can I check if an Entry was posted less than a month ago?

**Tags:** entry, datetime, postdate

---

## 1 answers

### Answer by username_0 on 2016-04-29. Score: 2 | Accepted answer

{% if entry.postDate > now|date_modify("-1 month") %}
    {# Output #}
{% endif %}


---

