# Get the posts earlier than a date

**URL:** <https://discourse.gohugo.io/t/get-the-posts-earlier-than-a-date/32192>\
**Category:** support\
**Created:** [April 6, 2021, 12:57pm UTC](https://discourse.gohugo.io/t/get-the-posts-earlier-than-a-date/32192 "2021-04-06T12:57:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![chrillek](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/chrillek/32/19797_2.png) [@chrillek](https://discourse.gohugo.io/u/chrillek)\
**Post date:** [April 6, 2021, 1:15pm UTC](https://discourse.gohugo.io/t/get-the-posts-earlier-than-a-date/32192/2 "2021-04-06T13:15:12Z")

</div>

Something related has been discussed here:

> [@Nested where + date compare not working?](https://discourse.gohugo.io/t/nested-where-date-compare-not-working/10978):
>
> Hi, I’m kinda blocked and lost with a nested where condition. Some help would be really helpul for I haven’t found any answers on the forum yet. slight_smile Here’s what I’m trying to do: Parse a type of content with a param event\_date greater than now. Here’s what I got: --- title: "My title" date: 2018-02-18T11:49:51+01:00 draft: false event\_info: event\_date: 2020-12-14 --- {{ range (where (where .Data.Pages "Section" "bal" ) (time (.Params.event\_info.event\_date)) "ge" $today ) …

---

_[View the full topic](https://discourse.gohugo.io/t/get-the-posts-earlier-than-a-date/32192)._
