I want to display only resources that are published in the year 2015.
I tried:
&where=`{"publishedon:":2015}`
But this is not working. Can anybody help me?
I want to display only resources that are published in the year 2015.
I tried:
&where=`{"publishedon:":2015}`
But this is not working. Can anybody help me?
Copyright © 2021 Jogjafile Inc.
publishedon is saved as unix time in the database. So you have to convert your date (2015) to unix time and check a date range with that.
Create a snippet named inyear with the following code:
After this you could call getRessources with
You could even add an additional where clause with the &where property of the inyear snippet.