Python Eve - How to filter by datetime value
<p>How can I return items filtered by date or date interval? 
I was trying something like this based on the filtering example from eve's <a href="http://python-eve.org/features.html#filtering" rel="nofollow">documentation</a>:</p>

<pre><code>/records/?where={"date": {"$gte": "2016-10-17"}}
</code></pre>

<p>I was thinking this python syntax could work too by checking this comment in eve's request parsing <a href="https://github.com/nicolaiarocci/eve/blob/develop/eve/io/mongo/parser.py#L21-L23" rel="nofollow">code</a>:</p>

<pre><code>/records/?where=date==datetime('2016-10-16')
</code></pre>

<p>But the result is 500 internal error, maybe the syntax is wrong. I'm having a hard 
time getting it right. </p>

<p>Thanks.</p>

<p>Try this:</p>

<pre><code>/records?where={"date": {"$gt": "Mon, 17 Oct 2016 03:00:00 GMT"}}
</code></pre>

<p>It uses the <code>DATE_FORMAT</code> setting which defaults to RFC1123.</p>

python mongodb eve