# MongoDB Date fields nested objects

**URL:** <https://community.n8n.io/t/mongodb-date-fields-nested-objects/5697>\
**Category:** Questions\
**Created:** [May 10, 2021, 2:50pm UTC](https://community.n8n.io/t/mongodb-date-fields-nested-objects/5697 "2021-05-10T14:50:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaxF](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/maxf/32/4699_2.png) [@MaxF](https://community.n8n.io/u/MaxF)\
**Post date:** [May 10, 2021, 2:50pm UTC](https://community.n8n.io/t/mongodb-date-fields-nested-objects/5697/1 "2021-05-10T14:50:31Z")

</div>

defining date fields is a cool option of mongodb node.  
but how to use, if we have date fields within nested objects?  
i tried to define nested objects dot notated i.e.: `customer.created_at`  
but this doesn’t seem to work on nested objects.  
maybe nested object date fields are not implemented within the current code or i’m doing it the wrong way?  
for main objects on first level, date fields are formated as expected.

my example mongodb node looks like this:

has anyone a hint for me?

---

<div class="post-metadata">

**Author:** ![RicardoE105](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ricardoe105/32/550_2.png) [@RicardoE105](https://community.n8n.io/u/RicardoE105)\
**Post date:** [May 10, 2021, 9:53pm UTC](https://community.n8n.io/t/mongodb-date-fields-nested-objects/5697/2 "2021-05-10T21:53:39Z")

</div>

Welcome to the community @MaxF

Yes, sadly, it does not support dot notation. It should not be difficult to add. I just added it to my to-do.

---

<div class="post-metadata">

**Author:** ![RicardoE105](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ricardoe105/32/550_2.png) [@RicardoE105](https://community.n8n.io/u/RicardoE105)\
**Post date:** [May 11, 2021, 1:32am UTC](https://community.n8n.io/t/mongodb-date-fields-nested-objects/5697/3 "2021-05-11T01:32:22Z")

</div>

Ok dot notation in the date field got added. Can you please test it locally and confirm it works for you?

[https://github.com/n8n-io/n8n/pull/1768](https://github.com/n8n-io/n8n/pull/1768)

---

<div class="post-metadata">

**Author:** ![MaxF](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/maxf/32/4699_2.png) [@MaxF](https://community.n8n.io/u/MaxF)\
**Post date:** [May 11, 2021, 8:29am UTC](https://community.n8n.io/t/mongodb-date-fields-nested-objects/5697/4 "2021-05-11T08:29:57Z")

</div>

thank’s for your fast response!  
i’ll wait for the updated version.  
🙂

---

<div class="post-metadata">

**Author:** ![BenW](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/benw/32/2472_2.png) [@BenW](https://community.n8n.io/u/BenW)\
**Post date:** [May 10, 2022, 12:51pm UTC](https://community.n8n.io/t/mongodb-date-fields-nested-objects/5697/5 "2022-05-10T12:51:02Z")

</div>

Seems something similar got released with n8n@0.174.0

See:

> <https://github.com/n8n-io/n8n/pull/2487>
>
> Parse Dates using dot notation on MondoDB
