Showing posts live during a date range I've tried to follow a ton of other articles posted on Stackoverflow for showing posts between 2 dates. I just can't seem to get it working and I keep getting an error of: Call to a member function getTimestamp() on boolean

{% set startDate = now | date_modify('first day of ' ~ qFilter) %}
{% set endDate = startDate | date_modify('+ 1 month') %}
{% set entries = craft.entries.section('events').postDate('&lt;= startDate').expiryDate('&gt;= endDate') %}


(qFilter is a url param: eg "May")

I'm trying to show posts that were live during a certain month.
You are passing a string &lt;= startDate to the field parameter, but you actually want it to be a string &lt;= 2016-01-01, which you can get by concatenationg the &lt;= string with the datetime variable. So change your parameters like so:

postDate('&lt;= ' ~ startDate) instead of
postDate('&lt;= startDate')