# MongoDB find query ISODate support

**URL:** <https://community.n8n.io/t/mongodb-find-query-isodate-support/49994>\
**Category:** Questions\
**Created:** [11. Juli 2024 um 20:16 UTC](https://community.n8n.io/t/mongodb-find-query-isodate-support/49994 "2024-07-11T20:16:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ria](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ria/32/99251_2.png) [@ria](https://community.n8n.io/u/ria)\
**Post date:** [12. Juli 2024 um 14:34 UTC](https://community.n8n.io/t/mongodb-find-query-isodate-support/49994/3 "2024-07-12T14:34:40Z")

</div>

Hi @Glenn_B

Thanks for posting here and welcome to the community! 🥳

I’m not an expert on Mongo DB, but I believe you will have to put the keys in strings, like so:

```auto
{ "updated": { "$lt": ISODate("2021-02-25T10:03:46.000Z") } }

```

You can also have a look at a similar post from the community:

> [@Problem in node mongoDB aggregation](http://community.n8n.io/t/problem-in-node-mongodb-aggregation/49833):
>
> i have this aggregate query and its working on my database query console but when I run it on n8n it will return an empty collection I think the problem is in line 4 when I want to create a new Date() it can not understand it with this n8n JSON syntax can somebody help me?

Let me know if this helps! 🙌

---

_[View the full topic](https://community.n8n.io/t/mongodb-find-query-isodate-support/49994)._
