Showing posts live during a date range
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')