Use mongoexport with a --query for ISODate
<p>I have this query but i´m getting a syntax error: unexpected identifier</p>

<pre><code>mongoexport --db ium --collection events \
  --query 'db.events.find({'created_at' : {
      $gte: ISODate("2016-03-01T00:00:00.001Z"),
      $lte: ISODate("2016-03-29T23:59:59:59.000Z")
    }, 
    "name" : "UPDATE_SUCCESS"})' \
 --out guille1_test.json
</code></pre>

<p>what can it be wrong?</p>