Use where clause with dateFormat

Hello,

I want to filter my pages by articleDate:

{{ $pages = where $pages (dateFormat “2006” “.Params.articleDate”) “==” “2020” }}

I get the following error: error calling dateFormat: unable to parse date: .Params.articledate
Is using ‘where’ in combination with ‘dateFormat’ not possible?

Please show an example of your content’s front matter, including the delineators.

1 Like